VMS Help TCPIP Services, Programming Interfaces, Sockets API, connect(), Description *Conan The Librarian (sorry for the slow response - running on an old VAX) |
If s is a socket descriptor of type SOCK_DGRAM, then this call permanently specifies the peer where the data is sent. If s is of type SOCK_STREAM, then this call attempts to make a connection to the specified socket. Each communications space interprets the name argument. This argument specifies the socket that is connected to the socket specified in s. If the connect() function fails for a connection-mode socket, applications should use the close() function to deallocate the socket and descriptor. If attempting to reinitiate the connection, applications should create a new socket. Related Functions See also accept(), select(), socket(), getsockname(), and shutdown().
|