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 30 - AppleTalk Reference / AppleTalk Addressing Reference
AppleTalk Utility Functions /


OTInitDDPNBPAddress

Initializes a combined DDP-NBP address structure.

C INTERFACE
size_t OTInitDDPNBPAddress(DDPNBPAddress* address, 
                                         const char* name, 
                                         UInt16 net, UInt8 node, 
                                         UInt8 sock
C++ 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
The OTInitDDPNBPAddress 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 the name parameter plus the size of a DDPAddress structure.

SEE ALSO
The OTInitNBPAddress function.

The OTInitDDPAddress function.

"Datagram Delivery Protocol (DDP)".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998