Internet Address Structure
You use the internet address structure when providing a TCP or UDP address to the Open Transport functions OTConnect, OTSndURequest, and OTBind. You can use the OTInitInetAddress function to fill in an internet address structure. The internet address structure is defined by the InetAddress data type.
struct InetAddress {
OTAddressType fAddressType;
InetPort fPort;
InetHost fHost;
UInt8 fUnused[8];
};
typedef struct InetAddress InetAddress;
Field Description
fAddressType
- The address type. The field should be
AF_INET, which identifies the structure as an InetAddress.
fPort
- The port number.
fHost
- The 32-bit IP address of the host.
fUnused
- Reserved.