Add bind address support for outgoing TCP connections.
This commit is contained in:
parent
35f5852d8f
commit
d181a6730f
4 changed files with 14 additions and 9 deletions
|
@ -78,7 +78,7 @@ interface EventDriverCore {
|
|||
|
||||
interface EventDriverSockets {
|
||||
@safe: /*@nogc:*/ nothrow:
|
||||
StreamSocketFD connectStream(scope Address peer_address, ConnectCallback on_connect);
|
||||
StreamSocketFD connectStream(scope Address peer_address, scope Address bind_address, ConnectCallback on_connect);
|
||||
StreamListenSocketFD listenStream(scope Address bind_address, AcceptCallback on_accept);
|
||||
void waitForConnections(StreamListenSocketFD sock, AcceptCallback on_accept);
|
||||
ConnectionState getConnectionState(StreamSocketFD sock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue