if ("udp".equals(protocol))
stream = new UdpInputOutput(env, host, port, Domain.AF_INET);
else {
boolean isSecure = "ssl".equals(protocol);
stream = new TcpInputOutput(env, host, port, isSecure, Domain.AF_INET);
}
if (timeout > 0)
stream.setTimeout((int) (timeout * 1000));
else