Home
last modified time | relevance | path

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

/external/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()
/external/honggfuzz/socketfuzzer/
Dvulnserver_cov.c87 struct sockaddr_in serv_addr, cli_addr; in main() local
106 bzero((char *)&serv_addr, sizeof(serv_addr)); in main()
107 serv_addr.sin_family = AF_INET; in main()
108 serv_addr.sin_addr.s_addr = INADDR_ANY; in main()
109 serv_addr.sin_port = htons(portno); in main()
114 if (bind(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0) { in main()
/external/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()
/external/libpcap/
Dpcap-sita.c67 struct sockaddr_in *serv_addr; /* the address control block for comms to this unit */ member
315 if (u->serv_addr == NULL) { in open_with_IOP()
316 u->serv_addr = malloc(sizeof(struct sockaddr_in)); in open_with_IOP()
319 if (u->serv_addr == NULL) { /* oops, we didn't get the memory requested */ in open_with_IOP()
327 memset((char *)u->serv_addr, 0, sizeof(struct sockaddr_in)); in open_with_IOP()
328 u->serv_addr->sin_family = AF_INET; in open_with_IOP()
329 u->serv_addr->sin_addr.s_addr = inet_addr(ip); in open_with_IOP()
330 u->serv_addr->sin_port = htons(IOP_SNIFFER_PORT); in open_with_IOP()
336 if (connect(sockfd, (struct sockaddr *)u->serv_addr, sizeof(struct sockaddr_in)) < 0) { in open_with_IOP()
/external/v8/src/
Dd8-posix.cc760 sockaddr_in serv_addr; in ReadCharsFromTcpPort() local
761 memset(&serv_addr, 0, sizeof(sockaddr_in)); in ReadCharsFromTcpPort()
762 serv_addr.sin_family = AF_INET; in ReadCharsFromTcpPort()
763 serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in ReadCharsFromTcpPort()
764 serv_addr.sin_port = htons(Shell::options.read_from_tcp_port); in ReadCharsFromTcpPort()
766 if (connect(sockfd, reinterpret_cast<sockaddr*>(&serv_addr), in ReadCharsFromTcpPort()
767 sizeof(serv_addr)) < 0) { in ReadCharsFromTcpPort()
/external/openssh/
Dsshconnect.c332 timeout_connect(int sockfd, const struct sockaddr *serv_addr, in timeout_connect() argument
343 result = connect(sockfd, serv_addr, addrlen); in timeout_connect()
348 rc = connect(sockfd, serv_addr, addrlen); in timeout_connect()
/external/ltp/testcases/kernel/syscalls/epoll2/examples/
Depoll-test.c203 int eph_connect(struct eph_conn *conn, const struct sockaddr *serv_addr, in eph_connect() argument
207 if (connect(conn->sfd, serv_addr, addrlen) == -1) { in eph_connect()
/external/python/cpython3/Lib/test/
Dtest_socket.py528 self.serv_addr = self.serv.getsockname()
598 self.cli.connect(self.serv_addr)
642 self.port = self.serv_addr[1]
2448 return ([], [], 0, self.serv_addr)
2451 return self.cli_sock.sendto(msg, self.serv_addr)
4086 self.serv_conn.connect(self.serv_addr)
4112 self.serv_addr)