Expand description
Socket implementation using smoltcp
Structsยง
- FD_
SOCKET_ MAP - Map from fd to socket handle for syscall operations
- GLOBAL_
INTERFACE - Global network interface for socket operations
- SOCKET_
SET - Socket
File
Enumsยง
Constantsยง
- AF_INET ๐
- SOCKADDR_
IN_ ๐SIZE
Functionsยง
- create_
tcp_ socket - create_
udp_ socket - get_
socket_ handle - Get socket handle from (tid, fd)
- get_
socket_ local_ endpoint - Get local endpoint from a socket
- get_
socket_ remote_ endpoint - Get remote endpoint from a socket
- init_
global_ interface - Initialize global interface (should be called during network setup)
- parse_
sockaddr_ in - Parse sockaddr_in structure
- register_
socket_ fd - Register a socket fd mapping (tid, fd) -> handle
- set_
socket_ local_ endpoint - Set local endpoint for a socket
- set_
socket_ remote_ endpoint - Set remote endpoint for a socket
- socket_
sendto - Send data to a specific endpoint (for sendto syscall)
- socket_
shutdown_ read - Shutdown socket read
- socket_
shutdown_ write - Shutdown socket write
- tcp_
connect - Perform TCP connect with Context
- unregister_
socket_ fd - Unregister a socket fd mapping
- update_
socket_ file_ handle - Update socket handle in SocketFile (used in accept)
- update_
socket_ handle - Update socket handle for an existing fd (used in accept)
- write_
sockaddr_ in - Write sockaddr_in structure
- write_
sockaddr_ ๐in_ to_ buf - Write sockaddr_in to buffer