Expand description
Networking primitives for TCP/UDP communication.
Structs§
- AxTcp
Socket Handle - A handle to a TCP socket.
- AxUdp
Socket Handle - A handle to a UDP socket.
Functions§
- ax_
dns_ query - Resolves the host name to a list of IP addresses.
- ax_
poll_ interfaces - Poll the network stack.
- ax_
tcp_ accept - Accepts a new connection on the TCP socket.
- ax_
tcp_ bind - Binds the TCP socket to the given address and port.
- ax_
tcp_ connect - Connects the TCP socket to the given address and port.
- ax_
tcp_ listen - Starts listening on the bound address and port.
- ax_
tcp_ peer_ addr - Returns the remote address and port of the TCP socket.
- ax_
tcp_ poll - Returns whether the TCP socket is readable or writable.
- ax_
tcp_ recv - Receives data on the TCP socket, and stores it in the given buffer. On success, returns the number of bytes read.
- ax_
tcp_ send - Transmits data in the given buffer on the TCP socket.
- ax_
tcp_ set_ nonblocking - Moves this TCP socket into or out of nonblocking mode.
- ax_
tcp_ shutdown - Closes the connection on the TCP socket.
- ax_
tcp_ socket - Creates a new TCP socket.
- ax_
tcp_ socket_ addr - Returns the local address and port of the TCP socket.
- ax_
udp_ bind - Binds the UDP socket to the given address and port.
- ax_
udp_ connect - Connects this UDP socket to a remote address, allowing the
sendandrecvto be used to send data and also applies filters to only receive data from the specified address. - ax_
udp_ peek_ from - Receives a single datagram message on the UDP socket, without removing it from the queue.
- ax_
udp_ peer_ addr - Returns the remote address and port of the UDP socket.
- ax_
udp_ poll - Returns whether the UDP socket is readable or writable.
- ax_
udp_ recv - Receives a single datagram message on the UDP socket from the remote address to which it is connected. On success, returns the number of bytes read.
- ax_
udp_ recv_ from - Receives a single datagram message on the UDP socket.
- ax_
udp_ send - Sends data on the UDP socket to the remote address to which it is connected.
- ax_
udp_ send_ to - Sends data on the UDP socket to the given address. On success, returns the number of bytes written.
- ax_
udp_ set_ nonblocking - Moves this UDP socket into or out of nonblocking mode.
- ax_
udp_ socket - Creates a new UDP socket.
- ax_
udp_ socket_ addr - Returns the local address and port of the UDP socket.