Home
last modified time | relevance | path

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

/DragonOS-0.1.8/user/apps/http_server/
Dmain.c176 int server_fd, new_socket, valread; in main() local
220 … if ((new_socket = accept(server_fd, (struct sockaddr *)&address, (socklen_t *)&addrlen)) < 0) in main()
227 valread = read(new_socket, buffer, MAX_REQUEST_SIZE); in main()
231 handle_request(new_socket, buffer); in main()
234 close(new_socket); in main()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs337 let (new_socket, remote_endpoint) = socket.accept()?; in accept()
342 let new_socket: Arc<SocketInode> = SocketInode::new(new_socket); in accept() localVariable
343 let new_fd = current_pcb().alloc_fd(File::new(new_socket, FileMode::O_RDWR)?, None)?; in accept()
Dsocket.rs918 let new_socket = { in accept() localVariable
953 return Ok((new_socket, Endpoint::Ip(Some(remote_ep)))); in accept()