A TCP echo server that follows a simple text based, new line delimited message protocol.
The server sends a "Hello" as the first message and then the echo of what it receives from the client.
This example demonstrates the usage of simple server side interceptors which does not do any data transformations.
For interceptors requiring data transformation see TransformingInterceptorsServer
This example just aims to demonstrate how to write the simplest TCP server, it is however, not of much use in general
primarily because it reads unstructured data i.e. there are no boundaries that define what constitutes "a message".
In order to define such boundaries, one would typically add a ChannelHandler that converts the read raw
ByteBuffer to a structured message.