Add missing imports pointed out by Ketmar

This commit is contained in:
Hackerpilot 2015-05-06 12:30:03 -07:00
parent 8defba940d
commit 17053fab06
2 changed files with 3 additions and 0 deletions

View File

@ -258,6 +258,8 @@ Options:
TcpSocket createSocket(ushort port)
{
import core.time : dur;
TcpSocket socket = new TcpSocket(AddressFamily.INET);
socket.setOption(SocketOptionLevel.SOCKET, SocketOption.RCVTIMEO, dur!"seconds"(5));
socket.connect(new InternetAddress("localhost", port));

View File

@ -29,6 +29,7 @@ import std.process;
import std.datetime;
import std.conv;
import std.allocator;
import std.exception : enforce;
import core.memory;