Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Connection request by the client

&pagelevel(4)&pagelevel

The client requests services from the server by sending a connection request to the socket of the server with the connect() function. On the client side, the connect() call causes a connection to be set up. In the ISO domain (AF_ISO) a connection request progresses as follows:

struct sockaddr_iso name;
struct sockaddr_iso server; 
...
bind(s, &name, sizeof name);
connect(s, &server, sizeof server);

The server parameter passes the network and transport selectors of the server with which the client wishes to communicate. The socket of the client must be assigned a name before connect() is called, i.e. bind() must have been called for the socket beforehand.

If connection setup is unsuccessful, an error code is returned. This can occur, for example, if the server is not ready to accept a connection (see the section “Connection acceptance by the server”). However, all names assigned by bind() are retained even if the connection setup fails.