コード例 #1
0
ファイル: NetworkService.java プロジェクト: 7realm/Chat
  @Override
  public void onConnection(ClientConnection connection) throws ChatException {
    // assign connection to self and start it
    connection.start();

    // notify about connection
    if (connectionListener != null) {
      connectionListener.onConnection(connection);
    }
  }
コード例 #2
0
ファイル: NetworkService.java プロジェクト: 7realm/Chat
 public void sendCommand(ClientConnection connection, byte[] bytes) throws ChatIOException {
   connection.sendCommand(bytes);
 }