예제 #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);
 }