Home
last modified time | relevance | path

Searched refs:endpoint (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.7/kernel/src/net/ !
Dsocket.rs208 if let Some(Endpoint::Ip(Some(endpoint))) = to { in write()
224 if let wire::IpAddress::Ipv4(ipv4_dst) = endpoint.addr { in write()
327 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind()
328 if let Endpoint::Ip(Some(ip)) = endpoint { in do_bind()
376 if let Some(Endpoint::Ip(Some(ref endpoint))) = to { in write()
377 endpoint in write()
378 } else if let Some(Endpoint::Ip(Some(ref endpoint))) = self.remote_endpoint { in write()
379 endpoint in write()
390 if socket.endpoint().port == 0 { in write()
430 fn bind(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in bind()
[all …]
Dsyscall.rs231 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in do_connect() localVariable
237 socket.connect(endpoint)?; in do_connect()
259 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in do_bind() localVariable
264 socket.bind(endpoint)?; in do_bind()
310 let endpoint = if addr.is_null() { in do_sendto() localVariable
320 return socket.write(buf, endpoint).map(|n| n as i64); in do_sendto()
379 let (n, endpoint) = socket.read(buf); in do_recvfrom()
386 let sockaddr_in = SockAddr::from(endpoint); in do_recvfrom()
427 let (n, endpoint) = socket.read(&mut buf); in do_recvmsg()
435 let sockaddr_in = SockAddr::from(endpoint); in do_recvmsg()
[all …]
Dmod.rs92 fn connect(&mut self, endpoint: Endpoint) -> Result<(), SystemError>; in connect()
137 fn endpoint(&self) -> Option<Endpoint> { in endpoint() method