this.timeOut = timeOut;
this.version = version;
this.tdhsNet = new TDHSNetForNetty();
this.charsetName = charsetName;
this.lowerCaseTableNames = lowerCaseTableNames;
NetParameters parameters = new NetParameters();
parameters.setAddress(address);
parameters.setConnectionNumber(connectionNumber);
parameters.setNeedReconnect(needReconnect);
tdhsNet.initNet(parameters, this.version.getTdhsProtocol().shakeHandPacket(this.timeOut, readCode, writeCode),
responses);
if (connectTimeOut > 0 && !awaitForConnected(connectTimeOut, TimeUnit.MILLISECONDS)) {
throw new TDHSTimeoutException("connect time out");
}