throws TTransportException
{
TTransport transport;
if (socksProxy == null) {
transport = new TTransportWrapper(new TSocket(host, port, (int) timeout.toMillis()), host);
transport.open();
}
else {
SocketAddress address = InetSocketAddress.createUnresolved(socksProxy.getHostText(), socksProxy.getPort());
Socket socks = new Socket(new Proxy(Proxy.Type.SOCKS, address));
try {