Searched refs:server_sockaddr (Results 1 – 1 of 1) sorted by relevance
35 struct sockaddr_in server_sockaddr; in tcp_server() local36 server_sockaddr.sin_family = AF_INET; in tcp_server()37 server_sockaddr.sin_port = htons(SERVER_PORT); in tcp_server()38 server_sockaddr.sin_addr.s_addr = htonl(INADDR_ANY); in tcp_server()40 if (bind(server_sockfd, (struct sockaddr *)&server_sockaddr, sizeof(server_sockaddr))) in tcp_server()99 struct sockaddr_in server_sockaddr; in udp_server() local100 server_sockaddr.sin_family = AF_INET; in udp_server()101 server_sockaddr.sin_port = htons(SERVER_PORT); in udp_server()102 server_sockaddr.sin_addr.s_addr = htonl(INADDR_ANY); in udp_server()104 if (bind(server_sockfd, (struct sockaddr *)&server_sockaddr, sizeof(server_sockaddr))) in udp_server()