![]() |
![]() |
![]() |
![]() |
![]() |
|
Your program establishes a connection to the server using
connect. The connect statement is just like the
bind statement, except that connect replaces bind:
connect (socket_number,
(struct sockaddr *) &server_addr,
sizeof (server_addr));