mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Support nonblocking option
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7f6ef5e12d
commit
48f69c25a9
@ -12,7 +12,7 @@
|
||||
int main()
|
||||
{
|
||||
int sock;
|
||||
char *hello = "Hello from client";
|
||||
char *hello = "Hello from asterinas";
|
||||
char buffer[1024] = { 0 };
|
||||
struct sockaddr_vm serv_addr;
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
int main()
|
||||
{
|
||||
int sock, new_sock;
|
||||
char *hello = "Hello from client";
|
||||
char *hello = "Hello from asterinas";
|
||||
char buffer[1024] = { 0 };
|
||||
struct sockaddr_vm serv_addr, client_addr;
|
||||
int addrlen = sizeof(client_addr);
|
||||
|
Reference in New Issue
Block a user