Important: The information in this document is obsolete and should not be used for new development.
Internet Address Structure
You use the internet address structure when providing a TCP or UDP address to the Open Transport functionsOTConnect,OTSndURequest, andOTBind. You can use theOTInitInetAddressfunction to fill in an internet address structure. The internet address structure is defined by theInetAddressdata 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 anInetAddress.fPort- The port number.
fHost- The 32-bit IP address of the host.
fUnused- Reserved.