Update examples.
This commit is contained in:
parent
8b8169b868
commit
2ca7932a66
|
@ -191,7 +191,7 @@ void main()
|
||||||
eventDriver.core.processEvents(Duration.max);
|
eventDriver.core.processEvents(Duration.max);
|
||||||
}
|
}
|
||||||
|
|
||||||
void onClientConnect(StreamListenSocketFD listener, StreamSocketFD client)
|
void onClientConnect(StreamListenSocketFD listener, StreamSocketFD client, scope RefAddress)
|
||||||
@trusted /*@nogc*/ nothrow {
|
@trusted /*@nogc*/ nothrow {
|
||||||
import core.stdc.stdlib;
|
import core.stdc.stdlib;
|
||||||
auto handler = cast(ClientHandler*)calloc(1, ClientHandler.sizeof);
|
auto handler = cast(ClientHandler*)calloc(1, ClientHandler.sizeof);
|
||||||
|
|
|
@ -25,7 +25,7 @@ void main()
|
||||||
eventDriver.core.processEvents(Duration.max);
|
eventDriver.core.processEvents(Duration.max);
|
||||||
}
|
}
|
||||||
|
|
||||||
void onClientConnect(StreamListenSocketFD listener, StreamSocketFD client)
|
void onClientConnect(StreamListenSocketFD listener, StreamSocketFD client, scope RefAddress)
|
||||||
@trusted /*@nogc*/ nothrow {
|
@trusted /*@nogc*/ nothrow {
|
||||||
import core.stdc.stdlib;
|
import core.stdc.stdlib;
|
||||||
auto handler = cast(ClientHandler*)calloc(1, ClientHandler.sizeof);
|
auto handler = cast(ClientHandler*)calloc(1, ClientHandler.sizeof);
|
||||||
|
|
Loading…
Reference in a new issue