- Inside Macintosh: Networking /
- Chapter 7 - Datagram Delivery Protocol (DDP) / DDP Reference
- Routines
Opening and Closing DDP Sockets
DDP delivers datagrams from socket to socket. You must open a socket before you
use DDP to send or receive a DDP datagram.
- You use the
POpenSkt function to open a DDP socket and associate your socket listener with it.
- You use the
PCloseSkt function to close a socket that you opened with the POpenSkt function.
To receive a DDP datagram from another socket, you must provide a socket listener to receive packets and your own routine to read the data. When you open a socket, you specify a pointer to the socket listener for that socket.
Subtopics
- POpenSkt
-
- PCloseSkt
-
© Apple Computer, Inc.
7 JUL 1996