Lines Matching refs:bind
43 Unix/Linux. On Unix, you can't have two AF_INET SOCK_STREAM sockets bind,
46 the order bind and listen were called on each socket).
49 will ever be raised when attempting to bind two identical host/ports. When
70 calling code has a chance to bind the returned port. We can deal with this
91 from bind()'ing to our host/port for the duration of the test.
114 sock.bind((host, 0))
122 sock.bind(addr)
125 raise unittest.SkipTest('cannot bind AF_UNIX sockets')
133 sock.bind((HOSTv6, 0))
147 """Decorator for tests requiring a functional bind() for unix sockets."""
156 sock.bind(path)
163 msg = 'Requires a functional unix bind(): %s' % _bind_nix_socket_error