Open topic with navigation
WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %SS2_GETPEERNAME(socket, in_port, in_addr6)
Returns SS_SUCCESS (0) or one of the errors in Error codes returned by %SS2_GETPEERNAME below. (n)
A descriptor of an open socket created by %SS_SOCKET. (i4)
Returned with the Internet port of the peer. (i4)
Returned with the IPv6 address of the peer. ([#]byte)
%SS2_GETPEERNAME returns the name of the peer for a connected stream socket or a datagram socket with an established peer address.
See the Socket Errors table for additional information about these errors.