Searched refs:serv_addr (Results 1 – 8 of 8) sorted by relevance
/third_party/ltp/testcases/kernel/sched/clisrv/ |
D | pthcli.c | 101 struct sockaddr_in serv_addr; in main() local 110 memset((char *)&serv_addr, 0x00, sizeof(serv_addr)); in main() 111 serv_addr.sin_family = AF_INET; in main() 112 serv_addr.sin_addr.s_addr = inet_addr(argv[1]); in main() 113 serv_addr.sin_port = htons(SERV_TCP_PORT); in main() 117 "serv_addr.sin_port = %d\n", __FILE__, serv_addr.sin_family, in main() 118 serv_addr.sin_addr.s_addr, serv_addr.sin_port); in main() 130 if (connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < in main()
|
D | pthserv.c | 94 struct sockaddr_in cli_addr, serv_addr; in main() local 109 memset((char *)&serv_addr, 0x00, sizeof(serv_addr)); in main() 110 serv_addr.sin_family = AF_INET; in main() 111 serv_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 112 serv_addr.sin_port = htons(SERV_TCP_PORT); in main() 116 "serv_addr.sin_port = %d\n", __FILE__, serv_addr.sin_family, in main() 117 serv_addr.sin_addr.s_addr, serv_addr.sin_port)); in main() 120 if (bind(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0) { in main()
|
/third_party/curl/tests/libtest/ |
D | lib1960.c | 83 struct sockaddr_in serv_addr; in test() local 107 serv_addr.sin_family = AF_INET; in test() 108 serv_addr.sin_port = htons(port); in test() 110 if(inet_pton(AF_INET, libtest_arg2, &serv_addr.sin_addr) <= 0) { in test() 115 status = connect(client_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in test()
|
/third_party/ltp/testcases/network/nfsv4/locks/ |
D | netsync.c | 136 struct sockaddr_in serv_addr; in setupConnectionClient() local 149 serv_addr.sin_addr = *(struct in_addr *)server->h_addr; in setupConnectionClient() 150 serv_addr.sin_port = htons(PORT); in setupConnectionClient() 151 serv_addr.sin_family = AF_INET; in setupConnectionClient() 152 if (connect(fdServer, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) in setupConnectionClient()
|
/third_party/gstreamer/gstplugins_bad/gst/festival/ |
D | gstfestival.c | 353 struct sockaddr_in serv_addr; in festival_socket_open() local 363 memset (&serv_addr, 0, sizeof (serv_addr)); in festival_socket_open() 364 if ((serv_addr.sin_addr.s_addr = inet_addr (host)) == -1) { in festival_socket_open() 372 memmove (&serv_addr.sin_addr, serverhost->h_addr, serverhost->h_length); in festival_socket_open() 374 serv_addr.sin_family = AF_INET; in festival_socket_open() 375 serv_addr.sin_port = htons (port); in festival_socket_open() 377 if (connect (fd, (struct sockaddr *) &serv_addr, sizeof (serv_addr)) != 0) { in festival_socket_open()
|
/third_party/node/deps/v8/src/d8/ |
D | d8-posix.cc | 646 sockaddr_in serv_addr; in ReadCharsFromTcpPort() local 647 memset(&serv_addr, 0, sizeof(sockaddr_in)); in ReadCharsFromTcpPort() 648 serv_addr.sin_family = AF_INET; in ReadCharsFromTcpPort() 649 serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in ReadCharsFromTcpPort() 650 serv_addr.sin_port = htons(Shell::options.read_from_tcp_port); in ReadCharsFromTcpPort() 652 if (connect(sockfd, reinterpret_cast<sockaddr*>(&serv_addr), in ReadCharsFromTcpPort() 653 sizeof(serv_addr)) < 0) { in ReadCharsFromTcpPort()
|
/third_party/python/Lib/test/ |
D | test_socket.py | 599 self.serv_addr = self.serv.getsockname() 669 self.cli.connect(self.serv_addr) 713 self.port = self.serv_addr[1] 2792 return ([], [], 0, self.serv_addr) 2795 return self.cli_sock.sendto(msg, self.serv_addr) 4516 self.serv_conn.connect(self.serv_addr) 4542 self.serv_addr)
|
/third_party/rust/crates/libc/src/ |
D | psp.rs | 4030 pub fn sceNetInetConnect(s: i32, serv_addr: *const sockaddr, addr_len: socklen_t) -> i32; in sceNetInetConnect()
|