Add EventDriverSockets.getRemoteAddress.

This commit is contained in:
Sönke Ludwig 2017-03-10 20:25:28 +01:00
parent a25b49228f
commit 2e5b13ee98
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C
3 changed files with 18 additions and 2 deletions

View file

@ -159,6 +159,9 @@ interface EventDriverSockets {
/// Retrieves the bind address of a socket.
bool getLocalAddress(StreamSocketFD sock, scope RefAddress dst);
/// Retrieves the address of the connected peer.
bool getRemoteAddress(StreamSocketFD sock, scope RefAddress dst);
/// Sets the `TCP_NODELAY` option on a socket
void setTCPNoDelay(StreamSocketFD socket, bool enable);