Пример #1
0
 void bind(final ClientEndpoint endpoint) {
   final Connection conn = endpoint.getConnection();
   if (conn instanceof TcpIpConnection) {
     Address address = new Address(conn.getRemoteSocketAddress());
     TcpIpConnectionManager connectionManager =
         (TcpIpConnectionManager) node.getConnectionManager();
     connectionManager.bind((TcpIpConnection) conn, address, null, false);
   }
   sendClientEvent(endpoint);
 }
Пример #2
0
 public void bind(final ClientEndpoint endpoint) {
   final Connection conn = endpoint.getConnection();
   if (conn instanceof TcpIpConnection) {
     Address address = new Address(conn.getRemoteSocketAddress());
     ((TcpIpConnection) conn).setEndPoint(address);
   }
   ClientEvent event =
       new ClientEvent(
           endpoint.getUuid(),
           ClientEventType.CONNECTED,
           endpoint.getSocketAddress(),
           endpoint.getClientType());
   sendClientEvent(event);
 }