Home
last modified time | relevance | path

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

/DragonOS/kernel/src/net/socket/
H A Dinet.rs155 if let Some(Endpoint::Ip(Some(endpoint))) = to { in write()
171 if let wire::IpAddress::Ipv4(ipv4_dst) = endpoint.addr { in write()
296 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind()
297 if let Endpoint::Ip(Some(mut ip)) = endpoint { in do_bind()
352 return (Ok(size), Endpoint::Ip(Some(metadata.endpoint))); in read()
366 if let Some(Endpoint::Ip(Some(ref endpoint))) = to { in write()
367 endpoint in write()
368 } else if let Some(Endpoint::Ip(Some(ref endpoint))) = self.remote_endpoint { in write()
369 endpoint in write()
400 fn bind(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in bind()
[all …]
H A Dunix.rs84 fn connect(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in connect()
89 if let Endpoint::Inode(inode) = endpoint { in connect()
195 fn connect(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in connect()
200 if let Endpoint::Inode(inode) = endpoint { in connect()
H A Dmod.rs169 fn endpoint(&self) -> Option<Endpoint> { in endpoint() method
311 if let Some(Endpoint::Ip(Some(ip))) = socket.endpoint() { in do_close()
/DragonOS/kernel/src/net/
H A Dsyscall.rs198 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in connect() localVariable
203 socket.connect(endpoint)?; in connect()
215 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in bind() localVariable
220 socket.bind(endpoint)?; in bind()
240 let endpoint = if addr.is_null() { in sendto() localVariable
250 return socket.write(buf, endpoint); in sendto()
274 let (n, endpoint) = socket.read(buf); in recvfrom()
281 let sockaddr_in = SockAddr::from(endpoint); in recvfrom()
307 let (n, endpoint) = socket.read(&mut buf); in recvmsg()
315 let sockaddr_in = SockAddr::from(endpoint); in recvmsg()
[all …]