[Overview][Constants][Types][Procedures and functions] | Reference for unit 'Sockets' (#rtl) |
Return the name (address) of the connected peer.
Source position: socketsh.inc line 191
function GetPeerName( |
Sock: LongInt; |
var Addr; |
var Addrlen: LongInt |
):LongInt; |
GetPeerName returns the name of the entity connected to the specified socket Sock. The Socket must be connected for this call to work.
Addr should point to enough space to store the name, the amount of space pointed to should be set in Addrlen. When the function returns succesfully, Addr will be filled with the name, and Addrlen will be set to the length of Addr.
Errors are reported in SocketError, and include the following:
|
Open a connection to a server socket. |
|
|
Create new socket |
No notes exist for this page yet.