Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 29 - TCP/IP Services Reference / Constants and Data Types


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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998