Lines Matching refs:addr
40 struct sockaddr_in addr; in create_socket() local
49 addr.sin_family = AF_INET; in create_socket()
50 addr.sin_port = htons(server_port); in create_socket()
51 addr.sin_addr.s_addr = INADDR_ANY; in create_socket()
60 if (bind(s, (struct sockaddr*) &addr, sizeof(addr)) < 0) { in create_socket()
157 struct sockaddr_in addr; in main() local
159 int addr_len = sizeof(addr); in main()
161 unsigned int addr_len = sizeof(addr); in main()
209 client_skt = accept(server_skt, (struct sockaddr*) &addr, in main()
282 addr.sin_family = AF_INET; in main()
283 inet_pton(AF_INET, rem_server_ip, &addr.sin_addr.s_addr); in main()
284 addr.sin_port = htons(server_port); in main()
286 if (connect(client_skt, (struct sockaddr*) &addr, sizeof(addr)) != 0) { in main()