Important: The information in this document is obsolete and should not be used for new development.
OTInitDDPNBPAddress
Initializes a combined DDP-NBP address structure.C INTERFACE
size_t OTInitDDPNBPAddress(DDPNBPAddress* address, const char* name, UInt16 net, UInt8 node, UInt8 sockC++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
address
- A pointer to the combined DDP-NBP address structure you wish to initialize.
name
- A pointer to the NBP string you wish to use for the NBP name.
net
- The network number you wish to specify. Set to 0 to default to the local network.
node
- The node ID you wish to specify. Set to 0 to default to the local node.
socket
- The socket number you wish to specify. Set to 0 to allow Open Transport to assign a socket dynamically when you use this address to bind an endpoint.
ddpType
- The DDP type you wish to specify. Set to 0 unless you are using DDP.
- function result
- The size of the combined DDP-NBP address structure.
DISCUSSION
TheOTInitDDPNBPAddress
function initializes a combined DDP-NBP address structure with the data provided in the parameters: NBP name, network number, node ID, socket number, and DDP type. The function returns the total size of the address structure, which is the length of thename
parameter plus the size of aDDPAddress
structure.SEE ALSO
TheOTInitNBPAddress
function.The
OTInitDDPAddress
function."Datagram Delivery Protocol (DDP)".