I'm posting this in Newless Clubies, as I'm obviously making a trival mistake.
I have a non-blocking ServerSocketChannel that binds to local_ip@4455, do
register it for OP_ACCEPT. Then I create a SocketChannel, that connects to local_ip@4455, register for OP_READ and OP_WRITE. The client gets OP_WRITE and even manages to send bytes to the server (socketChannel.write() returns >0). The server does not receive any bytes (as it
didn't even register for OP_ACCEPT, so
doesn't know about the client).
So the client thinks it is connect to the server, yet the server did never accept() any socket.
So, what on earth am I missing?
launching server.. done
launching client... done
[NOTI] ClientLogger.clientConnected(Client[192.168.123.150:1532 -> 192.168.123.150:4555])
client writes 4 bytes
client writes 2 bytes
[NOTI] ClientLogger.clientSentPacket(Client[192.168.123.150:1532 -> 192.168.123.150:4555])