Socket_Connect - connect()
In: R0 = Socket descriptor
R1 = Pointer to address of remote host
R2 = Size of supplied address block
Out: R0 corrupted
This call initiates a connection from the specified socket to a given address on another host. When used on a raw or datagram socket, this will simply fix the remote address for future calls to Socket_Send, and this remote address can be changed by calling this routine again.
For stream sockets, the stack will attempt to make a connection to the specified address, and will block until the connection is achieved or the attempt fails. If the socket has been marked non-blocking it will instead return immediately with the error EINPROGRESS and will continue with the connection attempt on its own.
|
|
|