Class TCPStringServer

java.lang.Object
org.openremote.agent.protocol.io.AbstractNettyIOServer<T,io.netty.channel.socket.SocketChannel,io.netty.bootstrap.ServerBootstrap,InetSocketAddress>
org.openremote.agent.protocol.tcp.AbstractTCPServer<String>
org.openremote.agent.protocol.tcp.TCPStringServer
All Implemented Interfaces:
IOServer<String,io.netty.channel.socket.SocketChannel,InetSocketAddress>

public class TCPStringServer extends AbstractTCPServer<String>
This is an AbstractTCPServer implementation that handles String messages.

Uses DelimiterBasedFrameDecoder and StringDecoder.

  • Field Details

    • delimiter

      protected String delimiter
    • maxFrameLength

      protected int maxFrameLength
    • stripDelimiter

      protected boolean stripDelimiter
  • Constructor Details

    • TCPStringServer

      public TCPStringServer(InetSocketAddress localAddress, String delimiter, int maxFrameLength, boolean stripDelimiter)
  • Method Details