public class ServerExample extends Application {


List<Client> connections = new Vector<Client>();


void startServer() {


serverSocketChannel.accept(null, new CompletionHandler<AsynchronousSocketChannel , Void>() {


@Override
   public void completed(AsynchronousSocketChannel socketChannel, Void attachment) {


                       }

@Override
   public void failed(Throwable exc, Void attachment) {


  }

});

}



void stopServer() {


}


class Client {

AsynchronousSocketChannel socketChannel;
  
  Client(AsynchronousSocketChannel socketChannel) {
       this.socketChannel = socketChannel;
       receive();
  }


void receive() {

ByteBuffer byteBuffer = ByteBuffer.allocate(100);
socketChannel.read(byteBuffer, byteBuffer, new CompletionHandler<Integer, ByteBuffer>() {


@Override
public void completed(Integer result, ByteBuffer attachment) {


}

@Override
public void failed(Throwable exc, ByteBuffer attachment) {


connections.remove(Client.this);


}

}

}

}



큰 그림만 코드 적어봤는데, 끝에 보면 Client.this 있잖아

이거 무슨 뜻인지 모르겠어


this가 무엇을 의미하는거야

new CompletionHandler<Integer, ByteBuffer>() 익명 객체를 말하는거야?