Adjust for eventcore 0.8.12.
This commit is contained in:
parent
67e57f34d6
commit
01ed0a43de
2
dub.sdl
2
dub.sdl
|
@ -4,7 +4,7 @@ authors "Sönke Ludwig"
|
|||
copyright "Copyright © 2016, rejectedsoftware e.K."
|
||||
license "MIT"
|
||||
|
||||
dependency "eventcore" version="~>0.8.0"
|
||||
dependency "eventcore" version="~>0.8.12"
|
||||
|
||||
targetName "vibe_core"
|
||||
|
||||
|
|
|
@ -461,7 +461,7 @@ struct TCPConnection {
|
|||
import std.exception : enforce;
|
||||
|
||||
m_socket = socket;
|
||||
m_context = () @trusted { return &eventDriver.core.userData!Context(socket); } ();
|
||||
m_context = () @trusted { return &eventDriver.sockets.userData!Context(socket); } ();
|
||||
m_context.readBuffer.capacity = 4096;
|
||||
}
|
||||
|
||||
|
@ -727,7 +727,7 @@ struct UDPConnection {
|
|||
scope baddr = new RefAddress(bind_address.sockAddr, bind_address.sockAddrLen);
|
||||
m_socket = eventDriver.sockets.createDatagramSocket(baddr, null);
|
||||
enforce(m_socket != DatagramSocketFD.invalid, "Failed to create datagram socket.");
|
||||
m_context = () @trusted { return &eventDriver.core.userData!Context(m_socket); } ();
|
||||
m_context = () @trusted { return &eventDriver.sockets.userData!Context(m_socket); } ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue