Home
last modified time | relevance | path

Searched refs:bind_port (Results 1 – 25 of 45) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/net/
Dreuseaddr_ports_exhausted.c54 int bind_port(struct __test_metadata *_metadata, int reuseaddr, int reuseport) in bind_port() function
90 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
110 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
139 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
/external/mtools/
Dfloppyd.c679 static int bind_to_port(in_addr_t bind_ip, uint16_t bind_port) in bind_to_port() argument
709 addr.sin_port = htons(bind_port); in bind_to_port()
837 uint16_t bind_port = 0; in main() local
862 bind_port = getportnum(optarg); in main()
896 if(dispName==NULL && bind_port != 0) in main()
897 dispName=makeDisplayName((unsigned short)(bind_port - 5703)); in main()
901 if(bind_port == 0) { in main()
903 bind_port = FLOPPYD_DEFAULT_PORT; in main()
905 bind_port += atoi(p+1); in main()
915 bind_port = ntohs(addr.sin_port); in main()
[all …]
/external/python/cpython3/Lib/test/
Dtest_timeout.py244 socket_helper.bind_port(self.sock, self.localhost)
251 socket_helper.bind_port(serv, self.localhost)
260 socket_helper.bind_port(serv, self.localhost)
270 socket_helper.bind_port(serv, self.localhost)
289 socket_helper.bind_port(self.sock, self.localhost)
Dtest_asynchat.py34 self.port = socket_helper.bind_port(self.sock)
Dtest_telnetlib.py30 self.port = socket_helper.bind_port(self.sock)
/external/python/cpython2/Misc/NEWS.d/
D2.6a3.rst273 issue. test_support.bind_port() has been fixed such that it will always
277 bind_port() will actually raise an exception if it is passed an
279 socket option set. Furthermore, if available, bind_port() will set the
286 bind_port() has been removed. Under no circumstances should tests be hard
290 temporary socket object to bind_port() in order to obtain an unused port.
D2.7a3.rst421 test_timeout was changed to use ``test_support.bind_port()`` instead of a
/external/python/cpython3/Lib/test/support/
Dsocket_helper.py72 port = bind_port(tempsock)
76 def bind_port(sock, host=HOST): function
/external/iperf3/src/
Diperf_tcp.c411 lcladdr->sin_port = htons(test->bind_port); in iperf_tcp_connect()
425 else if (test->bind_port) { in iperf_tcp_connect()
433 lcladdr->sin_port = htons(test->bind_port); in iperf_tcp_connect()
441 lcladdr->sin6_port = htons(test->bind_port); in iperf_tcp_connect()
Diperf_sctp.c346 lcladdr->sin_port = htons(test->bind_port); in iperf_sctp_connect()
360 else if (test->bind_port) { in iperf_sctp_connect()
368 lcladdr->sin_port = htons(test->bind_port); in iperf_sctp_connect()
376 lcladdr->sin6_port = htons(test->bind_port); in iperf_sctp_connect()
Diperf_client_api.c63 int orig_bind_port = test->bind_port; in iperf_create_streams()
66 test->bind_port = orig_bind_port; in iperf_create_streams()
68 test->bind_port += i; in iperf_create_streams()
Diperf_locale.c234 const char bind_port[] = variable
Diperf.h261 int bind_port; /* --cport option */ member
Diperf_udp.c502 …if ((s = netdial(test->settings->domain, Pudp, test->bind_address, test->bind_port, test->server_h… in iperf_udp_connect()
/external/python/cpython2/Lib/test/
Dtest_timeout.py152 test_support.bind_port(self.sock, self.localhost)
170 test_support.bind_port(self.sock, self.localhost)
Dtest_nntplib.py40 self.port = test_support.bind_port(self.sock)
Dtest_telnetlib.py49 self.port = test_support.bind_port(self.sock)
108 self.port = test_support.bind_port(self.sock)
397 self.port = test_support.bind_port(self.sock)
Dtest_smtplib.py51 self.port = test_support.bind_port(self.sock)
277 self.port = test_support.bind_port(self.sock)
307 self.port = test_support.bind_port(self.sock)
Dtest_asynchat.py29 self.port = test_support.bind_port(self.sock)
Dtest_poplib.py302 self.port = test_support.bind_port(self.sock)
Dtest_httplib.py717 self.port = test_support.bind_port(self.serv)
769 TimeoutTest.PORT = test_support.bind_port(self.serv)
Dtest_test_support.py118 support.bind_port(s)
/external/cronet/third_party/libevent/
Dhttp-internal.h63 u_short bind_port; /* local port for binding the src */ member
/external/libevent/
Dhttp-internal.h62 ev_uint16_t bind_port; /* local port for binding the src */ member
/external/rust/crates/grpcio/src/
Dserver.rs367 let bind_port = binder.bind(server); in build() localVariable
368 if bind_port == 0 { in build()
372 binder.port = bind_port; in build()

12