Home
last modified time | relevance | path

Searched refs:serv_addr (Results 1 – 5 of 5) sorted by relevance

/third_party/ltp/testcases/kernel/sched/clisrv/
Dpthcli.c101 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()
Dpthserv.c94 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/ltp/testcases/network/nfsv4/locks/
Dnetsync.c136 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/
Dgstfestival.c353 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/python/Lib/test/
Dtest_socket.py599 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)