Searched refs:sockFD (Results 1 – 3 of 3) sorted by relevance
/haiku/src/tests/system/network/ |
H A D | udp_echo.c | 31 udp_echo_client(int sockFD, const struct sockaddr_in* serverAddr) in udp_echo_client() argument 42 status = sendto(sockFD, buf, len, 0, in udp_echo_client() 49 status = recvfrom(sockFD, buf, MAXLEN-1, 0, NULL, NULL); in udp_echo_client() 61 udp_broadcast(int sockFD, const struct sockaddr_in* serverAddr) in udp_broadcast() argument 71 setsockopt(sockFD, SOL_SOCKET, SO_BROADCAST, &option, sizeof(option)); in udp_broadcast() 73 status = sendto(sockFD, buf, len, 0, in udp_broadcast() 80 status = recvfrom(sockFD, buf, MAXLEN-1, 0, NULL, NULL); in udp_broadcast() 91 udp_echo_server(int sockFD) in udp_echo_server() argument 101 status = recvfrom(sockFD, buf, MAXLEN-1, 0, (struct sockaddr*)&clientAddr, &len); in udp_echo_server() 115 status = sendto(sockFD, buf, status, 0, in udp_echo_server() [all …]
|
H A D | udp_server.c | 21 udp_server(int sockFD) in udp_server() argument 27 status = recvfrom(sockFD, buf, MAXLEN-1, 0, NULL, NULL); in udp_server() 42 int sockFD; in main() local 50 sockFD = socket(AF_INET, SOCK_DGRAM, 0); in main() 56 status = bind(sockFD, (struct sockaddr *)&localAddr, sizeof(struct sockaddr_in)); in main() 62 udp_server(sockFD); in main()
|
H A D | udp_client.c | 21 udp_client(int sockFD, const struct sockaddr_in* serverAddr) in udp_client() argument 33 status = sendto(sockFD, sendbuf, status, 0, in udp_client() 47 int sockFD; in main() local 61 sockFD = socket(AF_INET, SOCK_DGRAM, 0); in main() 68 status = bind(sockFD, (struct sockaddr *)&clientAddr, sizeof(struct sockaddr_in)); in main() 75 udp_client(sockFD, &serverAddr); in main()
|