OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TSocketAddress and TINetSocketAddress encapsulate the address objects.
There are two types of addresses. The first is the generic socket address encapsulated by TSocketAddress. It is always stored in network-byte order. The family determines how the other bytes of the structure is used. The most common value is AF_INET.
The TINetSocketAddress class is derived from TSocketAddress. It encapsulates the Internet address. It stores a complete Internet address which includes an address family (which is AF_NET), a port, and a 32 bit (4 byte) IP address. The class you're more likely to use is TINetSocketAddress. You create the address by specifying the port and an optional address on the constructor.