protected void socketClosedRemotely(SelectionKey sk, SocketChannel readChannel, TcpAddress incomingAddress) throws IOException { logger.debug("Socket closed remotely"); sk.cancel(); readChannel.close(); TransportStateEvent e = new TransportStateEvent(DefaultTcpTransportMapping.this, incomingAddress, TransportStateEvent. STATE_DISCONNECTED_REMOTELY, null); fireConnectionStateChanged(e); sockets.remove(incomingAddress); }
protected void socketClosedRemotely(SelectionKey sk, SocketChannel readChannel, TcpAddress incomingAddress) throws IOException { logger.debug("Socket closed remotely"); sk.cancel(); readChannel.close(); TransportStateEvent e = new TransportStateEvent(DefaultTcpTransportMapping.this, incomingAddress, TransportStateEvent. STATE_DISCONNECTED_REMOTELY, null); fireConnectionStateChanged(e); sockets.remove(incomingAddress); }
STATE_DISCONNECTED_REMOTELY, iox); fireConnectionStateChanged(e);
STATE_DISCONNECTED_REMOTELY, iox); fireConnectionStateChanged(e);
STATE_CONNECTED, null); fireConnectionStateChanged(e);
STATE_CONNECTED, null); fireConnectionStateChanged(e);
STATE_CONNECTED, null); fireConnectionStateChanged(e); if (e.isCancelled()) { logger.warn("Incoming connection cancelled"); STATE_DISCONNECTED_REMOTELY, iox); fireConnectionStateChanged(e);
null, entry.message); fireConnectionStateChanged(e); TransportStateEvent.STATE_CLOSED, iox, entry.message); fireConnectionStateChanged(e);
TransportStateEvent.STATE_CLOSED, null); fireConnectionStateChanged(e); TransportStateEvent.STATE_CLOSED, iox); fireConnectionStateChanged(e);
null, entry.getMessages()); fireConnectionStateChanged(e); } catch (IOException ex) { logger.error(ex); TransportStateEvent.STATE_CLOSED, iox, entry.getMessages()); fireConnectionStateChanged(e); } catch (IOException ex) { logger.error(ex);
STATE_CONNECTED, null); fireConnectionStateChanged(e); if (e.isCancelled()) { logger.warn("Incoming connection cancelled");
STATE_CONNECTED, null); fireConnectionStateChanged(e); if (e.isCancelled()) { logger.warn("Incoming connection cancelled");
STATE_DISCONNECTED_REMOTELY, null); fireConnectionStateChanged(e);