Searched refs:udpPort (Results 1 – 1 of 1) sorted by relevance
39 int udpPort = DEFAULT_PORT; in main() local54 udpPort = atoi(optName+1); in main()55 if (udpPort < 1024 || udpPort > 65535) { in main()82 si_me.sin_port = htons(udpPort); in main()87 printf("UDP server listening on %s:%d\n", inet_ntoa(si_me.sin_addr), udpPort); in main()105 si_other.sin_port = htons(udpPort); in main()108 printf("UDP client sending packets to %s:%d\n", inet_ntoa(si_other.sin_addr), udpPort); in main()