Using Internet Stream Sockets
Writing the Client Process
NOTE
The client process does not get feedback that the server process has
completed the accept call. As soon as the connect call returns, the
client process can send data. Local internet and port addresses are bound
when connect is executed if you have not already bound them yourself.
These address values are chosen by the local host.
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.
42
Chapter 2