soBind (Function) |
Top Previous Next |
The soBind function assigns a local address to a socket.
This function is required on an unconnected socket before subsequent calls to the soListen function, to set the port and optionally the interface to listen on. It may be used on an unconnected socket before subsequent calls to the soConnect function, to set the interface and optionally the port.
If the address refer to a network interface, then the socket will only use this interface for communication.
Input: socket : SYSHANDLE Handle to the socket.
address : STRING The address to bind to. See also soAddrFromInterface.
Returns: INT
Declaration: FUNCTION soBind : INT;
Example:
|