Searched refs:sListen (Results 1 – 4 of 4) sorted by relevance
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | accept4.c | 40 int sListen = socket(AF_INET, SOCK_STREAM, 0); in ServerTaskOne() local 41 if (sListen == -1) { in ServerTaskOne() 46 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in ServerTaskOne() 54 rets = bind(sListen, (struct sockaddr *)&srvAddr, sizeof(srvAddr)); in ServerTaskOne() 56 close(sListen); in ServerTaskOne() 60 rets = listen(sListen, 2); in ServerTaskOne() 62 close(sListen); in ServerTaskOne() 70 sClient = accept4(sListen, (struct sockaddr *)&clnAddr, &clnAddrLen, 0); in ServerTaskOne() 73 close(sListen); in ServerTaskOne() 81 int sListen = socket(AF_INET, SOCK_STREAM, 0); in ServerTaskTwo() local [all …]
|
D | send.c | 38 int sListen = socket(AF_INET, SOCK_STREAM, 0); in SampleServerTask() local 39 if (sListen == -1) { in SampleServerTask() 44 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in SampleServerTask() 49 rets = bind(sListen, (struct sockaddr *)&srvAddr, sizeof(srvAddr)); in SampleServerTask() 51 close(sListen); in SampleServerTask() 55 rets = listen(sListen, 2); in SampleServerTask() 57 close(sListen); in SampleServerTask() 64 int sClient = accept(sListen, (struct sockaddr *)&clnAddr, &clnAddrLen); in SampleServerTask() 69 close(sListen); in SampleServerTask() 96 int sListen = socket(AF_INET, SOCK_STREAM, 0); in SampleServerNullTask() local [all …]
|
D | getpeername.c | 45 int sListen = socket(AF_INET, SOCK_STREAM, 0); in SampleServerTask() local 46 if (sListen == -1) { in SampleServerTask() 51 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in SampleServerTask() 56 rets = bind(sListen, (struct sockaddr *)&srvAddr, sizeof(srvAddr)); in SampleServerTask() 58 close(sListen); in SampleServerTask() 62 rets = listen(sListen, 2); in SampleServerTask() 64 close(sListen); in SampleServerTask() 71 int sClient = accept(sListen, (struct sockaddr *)&clnAddr, &clnAddrLen); in SampleServerTask() 81 close(sListen); in SampleServerTask()
|
D | recv.c | 50 int sListen = socket(AF_INET, SOCK_STREAM, 0); in SampleServerTask() local 51 if (sListen == -1) in SampleServerTask() 58 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in SampleServerTask() 67 rets = bind(sListen, (struct sockaddr *)&srvAddr, sizeof(srvAddr)); in SampleServerTask() 71 close(sListen); in SampleServerTask() 75 rets = listen(sListen, 2); in SampleServerTask() 79 close(sListen); in SampleServerTask() 86 int sClient = accept(sListen, (struct sockaddr *)&clnAddr, &clnAddrLen); in SampleServerTask() 93 close(sListen); in SampleServerTask()
|