Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.7/kernel/src/net/
Dsocket.rs5 socket::{raw, tcp, udp},
142 let socket = raw::Socket::new( in new() localVariable
150 let handle: GlobalSocketHandle = GlobalSocketHandle::new(SOCKET_SET.lock().add(socket)); in new()
166 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in read() localVariable
168 match socket.recv_slice(buf) { in read()
179 Err(smoltcp::socket::raw::RecvError::Exhausted) => { in read()
186 drop(socket); in read()
196 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write() localVariable
197 match socket.send_slice(buf) { in write()
201 Err(smoltcp::socket::raw::SendError::BufferFull) => { in write()
[all …]
Dsyscall.rs14 net::socket::{AddressFamily, SOL_SOCKET},
19 socket::{PosixSocketType, RawSocket, SocketInode, SocketOptions, TcpSocket, UdpSocket},
48 let socket: Box<dyn Socket> = match address_family { in do_socket() localVariable
67 let socketinode: Arc<SocketInode> = SocketInode::new(socket); in do_socket()
113 let socket = socket_inode.inner(); in do_setsockopt() localVariable
114 return socket.setsockopt(level, optname, data).map(|_| 0); in do_setsockopt()
162 let socket = binding.inner(); in do_getsockopt() localVariable
171 *optval = socket.metadata()?.send_buf_size as u32; in do_getsockopt()
180 *optval = socket.metadata()?.recv_buf_size as u32; in do_getsockopt()
190 drop(socket); in do_getsockopt()
[all …]
Dnet_core.rs2 use smoltcp::{socket::dhcpv4, wire};
13 use super::socket::{SOCKET_SET, SOCKET_WAITQUEUE};
Dmod.rs11 use self::socket::SocketMetadata;
15 pub mod socket; module
/DragonOS-0.1.7/kernel/
DCargo.toml20 …alse, features = ["log", "alloc", "socket-raw", "socket-udp", "socket-tcp", "socket-icmp", "socke…
/DragonOS-0.1.7/user/apps/test_relibc/
Dmain.c33 server_sockfd = socket(AF_INET, SOCK_STREAM, 0); in tcp_server()
97 server_sockfd = socket(AF_INET, SOCK_DGRAM, 0); in udp_server()
141 int client_sockfd = socket(AF_INET, SOCK_STREAM, 0); in tcp_client()
200 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) in udp_client()
/DragonOS-0.1.7/docs/community/ChangeLog/V0.1.x/
DV0.1.7.md198 新增网络socket的系统调用接口 (#247)
202 3.完善tcp,udp,raw socket
271 增加对dhcpv4的支持(tcp、udp socket已写好,但由于缺少epoll机制,尚未完整测试) (#237)
275 * raw socket
277 * 初步写完udp和tcp socket
/DragonOS-0.1.7/docs/userland/libc/apis/api-list/
Derrno.md129 #define ENOTCONN 56 /* 套接字未连接 The socket is not connected.*/
139 #define ENOTSOCK 60 /* 不是一个套接字 Not a socket.*/
147 …#define EOPNOTSUPP 64 /* 套接字不支持该操作 Operation not supported on socket (may be the same value a…
163 #define EPROTOTYPE 71 /* 对于套接字而言,错误的协议 Protocol wrong type for socket.*/
/DragonOS-0.1.7/kernel/src/process/
Dprocess.rs19 net::socket::SocketInode,
308 let socket: Arc<SocketInode> = f in get_socket() localVariable
312 return Some(socket); in get_socket()