public TcpTransport(WireFormat wireFormat, Socket socket, InitBuffer initBuffer) throws IOException { this.wireFormat = wireFormat; this.socket = socket; this.remoteLocation = null; this.localLocation = null; this.initBuffer = initBuffer; setDaemon(true); }
/** * Connect to a remote Node - e.g. a Broker * * @param wireFormat * @param socketFactory * @param remoteLocation * @param localLocation - e.g. local InetAddress and local port * @throws IOException * @throws UnknownHostException */ public TcpTransport(WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException { this.wireFormat = wireFormat; this.socketFactory = socketFactory; try { this.socket = socketFactory.createSocket(); } catch (SocketException e) { this.socket = null; } this.remoteLocation = remoteLocation; this.localLocation = localLocation; this.initBuffer = null; setDaemon(false); }
public TcpTransport(WireFormat wireFormat, Socket socket, InitBuffer initBuffer) throws IOException { this.wireFormat = wireFormat; this.socket = socket; this.remoteLocation = null; this.localLocation = null; this.initBuffer = initBuffer; setDaemon(true); }
public TcpTransport(WireFormat wireFormat, Socket socket, InitBuffer initBuffer) throws IOException { this.wireFormat = wireFormat; this.socket = socket; this.remoteLocation = null; this.localLocation = null; this.initBuffer = initBuffer; setDaemon(true); }
public TcpTransport(WireFormat wireFormat, Socket socket, InitBuffer initBuffer) throws IOException { this.wireFormat = wireFormat; this.socket = socket; this.remoteLocation = null; this.localLocation = null; this.initBuffer = initBuffer; setDaemon(true); }
/** * Initialize from a server Socket * * @param wireFormat * @param socket * @throws IOException */ public TcpTransport(WireFormat wireFormat, Socket socket) throws IOException { this.wireFormat = wireFormat; this.socket = socket; this.remoteLocation = null; this.localLocation = null; setDaemon(true); }
/** * Connect to a remote Node - e.g. a Broker * * @param wireFormat * @param socketFactory * @param remoteLocation * @param localLocation - e.g. local InetAddress and local port * @throws IOException * @throws UnknownHostException */ public TcpTransport(WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException { this.wireFormat = wireFormat; this.socketFactory = socketFactory; try { this.socket = socketFactory.createSocket(); } catch (SocketException e) { this.socket = null; } this.remoteLocation = remoteLocation; this.localLocation = localLocation; this.initBuffer = null; setDaemon(false); }
/** * Connect to a remote Node - e.g. a Broker * * @param wireFormat * @param socketFactory * @param remoteLocation * @param localLocation - e.g. local InetAddress and local port * @throws IOException * @throws UnknownHostException */ public TcpTransport(WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException { this.wireFormat = wireFormat; this.socketFactory = socketFactory; try { this.socket = socketFactory.createSocket(); } catch (SocketException e) { this.socket = null; } this.remoteLocation = remoteLocation; this.localLocation = localLocation; this.initBuffer = null; setDaemon(false); }
/** * Connect to a remote Node - e.g. a Broker * * @param wireFormat * @param socketFactory * @param remoteLocation * @param localLocation - e.g. local InetAddress and local port * @throws IOException * @throws UnknownHostException */ public TcpTransport(WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException { this.wireFormat = wireFormat; this.socketFactory = socketFactory; try { this.socket = socketFactory.createSocket(); } catch (SocketException e) { this.socket = null; } this.remoteLocation = remoteLocation; this.localLocation = localLocation; setDaemon(false); }
/** * Connect to a remote Node - e.g. a Broker * * @param wireFormat * @param socketFactory * @param remoteLocation * @param localLocation - e.g. local InetAddress and local port * @throws IOException * @throws UnknownHostException */ public TcpTransport(WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException { this.wireFormat = wireFormat; this.socketFactory = socketFactory; try { this.socket = socketFactory.createSocket(); } catch (SocketException e) { this.socket = null; } this.remoteLocation = remoteLocation; this.localLocation = localLocation; this.initBuffer = null; setDaemon(false); }