Endpoint - Network Endpoint
Endpoint objects represent generic network endpoints; i.e.,
either end of a network link. As such, the Endpoint class is
intended as a base class from which different types of network streams are
derived. The Endpoint class provides various utility methods
for retrieving the connection's file descriptor; checking if the connection
is up, is readable, or is writeable; and configuring the sizes of the
connection's system I/O buffers.
Endpoint() - creates a network endpoint.
~Endpoint() - destroys a network endpoint.
Close() - close the endpoint's file descriptor.
Fd() - gets the endpoint's file descriptor.
Fd() - sets the endpoint's file descriptor.
IsReadable() - checks if data is waiting to be read on the endpoint.
IsUp() - checks if the endpoint is up.
IsWriteable() - checks if data can be written to the endpoint.
Name() - gets the endpoint's name.
Name() - sets the endpoint's name.
Peer() - gets the name of the endpoint's peer.
Port() - gets the endpoint's port number.
SetBuf() - changes the sizes of an endpoint's receive and send buffers.
Endpoint.cpp
Endpoint.h