Getting Started with Sockets Over Local IPC
This section provides some basic information for getting started with sockets
over Local IPC:
- Use PF_OS2, or PF_UNIX for the protocol family
- Use AF_OS2, or AF_UNIX for the address family
- The following socket types are supported for the Local
IPC domain:
- Datagram (SOCK_DGRAM)
- Stream (SOCK_STREAM)
The
socket type is passed as a parameter to the socket() call. For additional
information, see Socket Types.
If
a connect() socket call is received without an explicit bind() call, an
implicit bind is automatically performed. The application can use any name,
and a unique Local IPC name is generated by networking services. You can
retrieve the Local IPC name by using the getsockname() call.
[Back: Sockets over Local IPC]
[Next: Local IPC Address Format]