|
|
HP 9000 Networking: BSD Sockets Interface Programmer's Guide > Chapter 6 Using UNIX Domain Stream SocketsPreparing Address Variables |
|
Before you begin to create a connection, establish the correct variables and collect the information that you need to request a connection. Your server process needs to: Your client process needs to:
These activities are described next. Refer to the program example at the end of this chapter to see how these activities work together. You need to declare a variable of type struct sockaddr_un to use for socket addresses. For example, the following declarations are used in the example client program:
sockaddr_un is a special case of sockaddr and is used with the AF_UNIX address domain . The sockaddr_un address structure consists of the following fields:
The server process only needs an address for its own socket. Your client process will not need an address for its own socket. |
|