Using UNIX Domain Stream Sockets
Writing the Client Process
When to Request a Connection
The client process should request a connection after socket is created and
after server socket has a listening socket. Refer to the connect(2) man
page for more information on connect.
Chapter 6
135