Lines Matching refs:server_addr
60 struct sockaddr_in server_addr; in client() local
67 memset(&server_addr, 0, sizeof(server_addr)); in client()
68 server_addr.sin_family = AF_INET; in client()
69 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in client()
70 server_addr.sin_port = htons(4001); in client()
72 SAFE_BIND(sock_fd1, (struct sockaddr *) &server_addr, sizeof(server_addr)); in client()
103 struct sockaddr_in server_addr; in server() local
110 memset(&server_addr, 0, sizeof(server_addr)); in server()
111 server_addr.sin_family = AF_INET; in server()
112 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in server()
113 server_addr.sin_port = htons(4000); in server()
115 SAFE_BIND(sock_fd2, (struct sockaddr *) &server_addr, sizeof(server_addr)); in server()