parent
972c56f629
commit
71f38012a4
|
@ -188,11 +188,7 @@ public class LinkManager {
|
||||||
int portPart = TcpConnector.getTcpPort(port);
|
int portPart = TcpConnector.getTcpPort(port);
|
||||||
String hostname = TcpConnector.getHostname(port);
|
String hostname = TcpConnector.getHostname(port);
|
||||||
socket = new Socket(hostname, portPart);
|
socket = new Socket(hostname, portPart);
|
||||||
TcpIoStream tcpIoStream = new TcpIoStream(logger, socket);
|
return new TcpIoStream(logger, socket);
|
||||||
IncomingDataBuffer dataBuffer = IncomingDataBuffer.createDataBuffer(tcpIoStream, logger);
|
|
||||||
tcpIoStream.setDataBuffer(dataBuffer);
|
|
||||||
|
|
||||||
return tcpIoStream;
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
stateListener.onConnectionFailed();
|
stateListener.onConnectionFailed();
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -35,6 +35,8 @@ public class TcpIoStream implements IoStream {
|
||||||
throw new NullPointerException("output");
|
throw new NullPointerException("output");
|
||||||
this.output = output;
|
this.output = output;
|
||||||
this.input = input;
|
this.input = input;
|
||||||
|
IncomingDataBuffer dataBuffer = IncomingDataBuffer.createDataBuffer(this, logger);
|
||||||
|
setDataBuffer(dataBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue