Represents a single client IP address.
When a connection is opened between a client IP and a NetSocket object, a new NetClient object will be created for the client's IP address if one does not already exist. All ClientSocket connections to that IP address are then tracked under the single NetClient object.
NetClient objects are intended to be created from the network interfacing code exclusively.
The NetClient class consists of the following fields:
Access | Name | Type | Comment |
---|---|---|---|
ClientData | APTR | A custom pointer available for userspace. | |
Connections | *ClientSocket | Pointer to the first established socket connection for the client IP. | |
IP | INT8 | The IP address of the client. | |
Next | *NetClient | The next client IP with connections to the server socket. | |
Prev | *NetClient | The previous client IP with connections to the server socket. | |
TotalConnections | INT | The total number of current socket connections for the IP address. |