[Overview][Constants][Types][Procedures and functions] | Reference for unit 'Sockets' (#rtl) |
Bind a socket to an address.
Source position: line 0
function Bind( |
Sock: LongInt; |
const Addr; |
AddrLen: LongInt |
):Boolean; |
Sock: LongInt; |
const addr: String |
):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.
The form of the Bind command with the TUnixSockAddr is equivalent to subsequently calling Str2UnixSockAddr and the regular Bind function. The function returns True if successfull, False otherwise.
Errors are returned in SocketError and include the following:
More arrors can be found in the Unix man pages.
|
Create new socket |
No notes exist for this page yet.