PeerInfoProvider

A provider for the peer host and port information.

Members

Functions

getHostname
string getHostname()

Returns the hostname supplied during engine/socket creation. No DNS resolution is attempted before returning the hostname.

getHostnameOrIP
string getHostnameOrIP()

This method attempts to create a textual representation of the peer host or IP. Does not perform a reverse DNS lookup. This is typically used during session creation.

getPort
int getPort()

Gets the port of the peer.

Static functions

forHostAndPort
PeerInfoProvider forHostAndPort(string host, int port)
Undocumented in source. Be warned that the author may not have intended to support it.
nullProvider
PeerInfoProvider nullProvider()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta