TheElectronWill / Niol

NIO Library for lightweight networking
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Support encryption before decoding packet length #2

Closed TheElectronWill closed 6 years ago

TheElectronWill commented 6 years ago

When the entire connection is encrypted, the data read from the SocketChannel needs to be deciphered before reading the packet's header.

This mechanism could be extended to other data transformations.

TheElectronWill commented 6 years ago

I'm on it! It will go further than just "support encryption": a transformation function could be applied to all the data that comes from the clients' SocketChannel.