digitalmars.D - Setting Timeout for a Socket (phobos D1.0)
- Zane (5/5) Jan 17 2010 Hello all,
Hello all, Could anyone give me an example of how to set the timeout for a socket connection using phobos' std.socket.Socket? Doing a: TcpSocket tsock = new TcpSocket(new InternetAddress(addr, port)); If the addr exists but the computer at addr does not have port open, the timeout is FAR too long. Thanks in advance!
Jan 17 2010