From 01ed0a43deb4cca46a99315d31a83599478620ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 27 Jun 2017 01:11:50 +0200 Subject: [PATCH] Adjust for eventcore 0.8.12. --- dub.sdl | 2 +- source/vibe/core/net.d | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dub.sdl b/dub.sdl index ebef658..f5ec1d5 100644 --- a/dub.sdl +++ b/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" diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 3cdb2e8..aed3edb 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -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); } (); }