Class TcpBaseServer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, ConnectionListener
    Direct Known Subclasses:
    TcpClient, TcpServer

    public abstract class TcpBaseServer
    extends BaseServer
    Common base class for TCP based clients and servers
    Since:
    3.6.5
    Author:
    Bela Ban
    • Field Detail

      • peer_addr_read_timeout

        protected int peer_addr_read_timeout
    • Method Detail

      • createConnection

        protected TcpConnection createConnection​(Address dest)
                                          throws java.lang.Exception
        Description copied from class: BaseServer
        Creates a new connection object to target dest, but doesn't yet connect it
        Specified by:
        createConnection in class BaseServer
        Throws:
        java.lang.Exception
      • peerAddressReadTimeout

        public int peerAddressReadTimeout()
      • peerAddressReadTimeout

        public TcpBaseServer peerAddressReadTimeout​(int timeout)