Important: The information in this document is obsolete and should not be used for new development.
OTInitInetAddress
Fills in anInetAddressstructure with the data you provide.C INTERFACE
void OTInitInetAddress (InetAddress *addr, InetPort port, InetHost hC++ INTERFACE
None. C++ clients use the C interface to this function.PARAMETERS
addr- A pointer to an
InetAddressstructure that you allocate. The function fills in this structure.
port- The port number of the address.
host- The IP address of the host.
DISCUSSION
This function copies thehostparameter to thefHostfield of the InetAddress, and theportparameter to thefPortfield.This function also fills in the
fAddressTypefield of theInetAddressstructure with the valueAF_INET. You use theInetAddressstructure when providing a TCP or UDP address to the Open Transport functionsOTConnect,OTSndURequest, andOTBind. You are not required to use theOTInitInetAddressfunction when creating anInetAddressstructure; this function is provided for your convenience only.SPECIAL CONSIDERATIONS
TheOTInetInitInetAddressfunction cannot block and always runs synchronously. It does not use the services of the DNR.SEE ALSO
TheOTInetStringToHostfunction.
 
  
  
  