Home
last modified time | relevance | path

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

/DragonOS/kernel/src/net/
H A Dsyscall.rs197 pub fn connect(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in connect()
198 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in connect()
214 pub fn bind(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in bind()
215 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in bind()
238 addrlen: usize, in sendto()
243 Some(SockAddr::to_endpoint(addr, addrlen)?) in sendto()
267 addrlen: *mut u32, in recvfrom()
283 sockaddr_in.write_to_user(addr, addrlen)?; in recvfrom()
359 pub fn accept(fd: usize, addr: *mut SockAddr, addrlen: *mut u32) -> Result<usize, SystemError> { in accept()
360 return Self::do_accept(fd, addr, addrlen, 0); in accept()
[all …]
/DragonOS/user/apps/http_server/
H A Dmain.c178 int addrlen = sizeof(address); in main() local
220 … if ((new_socket = accept(server_fd, (struct sockaddr *)&address, (socklen_t *)&addrlen)) < 0) in main()
/DragonOS/kernel/src/syscall/
H A Dmod.rs487 let addrlen = args[2]; in handle() localVariable
490 if verify_area(virt_addr, addrlen).is_err() { in handle()
494 Self::connect(args[0], addr, addrlen) in handle()
499 let addrlen = args[2]; in handle() localVariable
502 if verify_area(virt_addr, addrlen).is_err() { in handle()
506 Self::bind(args[0], addr, addrlen) in handle()
515 let addrlen = args[5]; in handle() localVariable
519 if verify_area(virt_buf, len).is_err() || verify_area(virt_addr, addrlen).is_err() { in handle()
524 Self::sendto(args[0], data, flags, addr, addrlen) in handle()
533 let addrlen = args[5] as *mut usize; in handle() localVariable
[all …]
/DragonOS/user/apps/test_bind/
H A Dmain.c16 int addrlen = sizeof(address); variable