Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/net/socket/
Dsockets.rs148 if let Some(Endpoint::Ip(Some(endpoint))) = to { in write()
164 if let wire::IpAddress::Ipv4(ipv4_dst) = endpoint.addr { in write()
277 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind()
278 if let Endpoint::Ip(Some(ip)) = endpoint { in do_bind()
339 if let Some(Endpoint::Ip(Some(ref endpoint))) = to { in write()
340 endpoint in write()
341 } else if let Some(Endpoint::Ip(Some(ref endpoint))) = self.remote_endpoint { in write()
342 endpoint in write()
353 if socket.endpoint().port == 0 { in write()
392 fn bind(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in bind()
[all …]
Dmod.rs163 fn endpoint(&self) -> Option<Endpoint> { in endpoint() method
321 if let Some(Endpoint::Ip(Some(ip))) = socket.endpoint() { in close()
/DragonOS-0.1.9/kernel/src/net/
Dsyscall.rs203 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in connect() localVariable
209 socket.connect(endpoint)?; in connect()
221 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in bind() localVariable
226 socket.bind(endpoint)?; in bind()
246 let endpoint = if addr.is_null() { in sendto() localVariable
256 return socket.write(buf, endpoint); in sendto()
280 let (n, endpoint) = socket.read(buf); in recvfrom()
287 let sockaddr_in = SockAddr::from(endpoint); in recvfrom()
313 let (n, endpoint) = socket.read(&mut buf); in recvmsg()
321 let sockaddr_in = SockAddr::from(endpoint); in recvmsg()
[all …]