[Overview][Constants][Types][Procedures and functions][Variables] |
Return name of socket.
Source position: socketsh.inc line 186
function GetSocketName( |
Sock: LongInt; |
var Addr; |
var Addrlen: LongInt |
):LongInt; |
GetSockNamereturns the current name of the specified socket Sock. Addrshould point to enough space to store the name, the amount of space pointed to should be set in Addrlen. When the function returns succesfully, Addrwill be filled with the name, and Addrlenwill be set to the length of Addr.
Errors are reported in SocketError, and include the following:
|
Bind a socket to an address. |