next up previous contents index
Next: Bind Up: Functions and Procedures Previous: Accept

Bind

   

Declaration:

Function Bind (Sock:Longint;Var Addr;AddrLen:Longint) : Boolean;

Description:

Bind binds the socket Sock to address Addr. Addr has length Addrlen.

The function returns True if the call was succesful, False if not.

Errors:

Errors are returned in SocketError and include the following:

SYS_EBADF
The socket descriptor is invalid.
SYS_EINVAL
The socket is already bound to an address,
SYS_EACCESS
Address is protected and you don't have permission to open it.

More arrors can be found in the Unix man pages.

See also:

Socket



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998