Class TcpDatagramSocket.Impl

    • Field Detail

      • HEADER_SIZE

        public static final int HEADER_SIZE
        The fixed header size for packets.
        See Also:
        Constant Field Values
      • PROTOCOL_MAGIC

        public static final int PROTOCOL_MAGIC
        Protcol identifier used to identify that peers are also TcpDatagramSockets. This is necessary so that we don't try to act upon garbage in this class, for instance trying to allocate a negative or gigabit sized packet.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Impl

        public Impl()
             throws SocketException
        Create a new new Impl.
        Throws:
        SocketException - if any error happens during the bind, or if the port is unavailable
      • Impl

        public Impl​(com.oracle.coherence.common.net.SocketProvider provider)
             throws SocketException
        Create a new Impl using a provider.
        Parameters:
        provider - the provider used to create internal sockets
        Throws:
        SocketException - if any error happens during the bind, or if the port is unavailable