KCML_Socket_GetPeerName

Purpose

Get the address of the peer connected to the socket

Definition

DEFSUB 'KCML_Socket_GetPeerName(hSocket, BYREF host$, BYREF port, bNumericHost = 0, bFQDN = 1) AS Void

Parameters

hSocketSocket
hostResult hostname
portResult port
bNumericHostOptional. If TRUE, the numeric form of the hostname is returned
bFQDNOptional. If FALSE, return only the hostname part of the fully qualified domain name for local hosts

See also

Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.