Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
end
addrin = new NativeSocketAddrIn.with_hostent(hostname, port)
end
addrin = new NativeSocketAddrIn.with_hostent(hostname, port)
address = addrin.address
init(addrin.port, hostname.h_name)
closed = not internal_connect
end_reached = closed
address = addrin.address
init(addrin.port, hostname.h_name)
closed = not internal_connect
end_reached = closed
+ if closed then
+ # Connection failed
+ last_error = new IOError(errno.strerror)
+ end
end
# Creates a client socket, this is meant to be used by accept only
end
# Creates a client socket, this is meant to be used by accept only