Searched refs:MESSAGE_LEN (Results 1 – 1 of 1) sorted by relevance
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-udpclient.c | 41 #define MESSAGE_LEN 1000 /* The length of message */ macro 284 message = malloc(MESSAGE_LEN); in main() 286 strncpy(message, "Hello!", MESSAGE_LEN); in main() 287 message[MESSAGE_LEN - 1] = '\0'; in main() 291 recvbuf = malloc(MESSAGE_LEN + 1); in main() 309 if (sendto(sock_fd, message, MESSAGE_LEN, 0, in main() 310 res->ai_addr, res->ai_addrlen) != MESSAGE_LEN) { in main() 320 if ((recvlen = recvfrom(sock_fd, recvbuf, MESSAGE_LEN, 0, in main()
|