[Overview][Constants][Types][Procedures and functions][Variables] |
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; |
Bindbinds the socket Sockto address Addr. Addrhas length Addrlen. The function returns Trueif the call was succesful, Falseif not.
The form of the Bindcommand with the TUnixSockAddris equivalent to subsequently calling Str2UnixSockAddrand the regular Bindfunction. The function returns Trueif successfull, Falseotherwise.
Errors are returned in SocketErrorand include the following:
More arrors can be found in the Unix man pages.
|
Create new socket |