Next: Bind
Up: Functions and Procedures
Previous: Accept
Function Bind (Sock:Longint;Var Addr;AddrLen:Longint) : Boolean;
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 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.
Socket
root
Fri Sep 11 18:24:36 CEST 1998