Lines Matching refs:ip
459 if let Endpoint::Ip(Some(ip)) = endpoint { in do_bind()
461 PORT_MANAGER.get_port(self.metadata.socket_type, ip.port, self.handle.clone())?; in do_bind()
463 let bind_res = if ip.addr.is_unspecified() { in do_bind()
464 socket.bind(ip.port) in do_bind()
466 socket.bind(ip) in do_bind()
813 if let Endpoint::Ip(Some(ip)) = endpoint { in connect()
820 match socket.connect(&mut inner_iface.context(), ip, temp_port) { in connect()
881 if let Endpoint::Ip(Some(mut ip)) = endpoint { in bind()
882 if ip.port == 0 { in bind()
883 ip.port = PORT_MANAGER.get_ephemeral_port(self.metadata.socket_type)?; in bind()
887 PORT_MANAGER.get_port(self.metadata.socket_type, ip.port, self.handle.clone())?; in bind()
889 self.local_endpoint = Some(ip); in bind()
1150 if let Some(Endpoint::Ip(Some(ip))) = socket.endpoint() { in close()
1151 PORT_MANAGER.unbind_port(socket.metadata().unwrap().socket_type, ip.port)?; in close()