Adjust for eventcore 0.8.12.

This commit is contained in:
Sönke Ludwig 2017-06-27 01:11:50 +02:00
parent 67e57f34d6
commit 01ed0a43de
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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); } ();
}