Add missing imports pointed out by Ketmar
This commit is contained in:
parent
8defba940d
commit
17053fab06
|
|
@ -258,6 +258,8 @@ Options:
|
||||||
|
|
||||||
TcpSocket createSocket(ushort port)
|
TcpSocket createSocket(ushort port)
|
||||||
{
|
{
|
||||||
|
import core.time : dur;
|
||||||
|
|
||||||
TcpSocket socket = new TcpSocket(AddressFamily.INET);
|
TcpSocket socket = new TcpSocket(AddressFamily.INET);
|
||||||
socket.setOption(SocketOptionLevel.SOCKET, SocketOption.RCVTIMEO, dur!"seconds"(5));
|
socket.setOption(SocketOptionLevel.SOCKET, SocketOption.RCVTIMEO, dur!"seconds"(5));
|
||||||
socket.connect(new InternetAddress("localhost", port));
|
socket.connect(new InternetAddress("localhost", port));
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ import std.process;
|
||||||
import std.datetime;
|
import std.datetime;
|
||||||
import std.conv;
|
import std.conv;
|
||||||
import std.allocator;
|
import std.allocator;
|
||||||
|
import std.exception : enforce;
|
||||||
|
|
||||||
import core.memory;
|
import core.memory;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue