Class AprDatagramSession.SessionConfigImpl

    • Constructor Detail

      • SessionConfigImpl

        private SessionConfigImpl()
    • Method Detail

      • isReuseAddress

        public boolean isReuseAddress()
        Returns:
        true if SO_REUSEADDR is enabled.
        See Also:
        DatagramSocket.getReuseAddress()
      • setReuseAddress

        public void setReuseAddress​(boolean on)
        Parameters:
        on - Tells if SO_REUSEADDR is enabled or disabled
        See Also:
        DatagramSocket.setReuseAddress(boolean)
      • getTrafficClass

        public int getTrafficClass()
        Returns:
        the traffic class
        See Also:
        DatagramSocket.getTrafficClass()
      • setTrafficClass

        public void setTrafficClass​(int tc)
        Parameters:
        tc - The traffic class to set, one of IPTOS_LOWCOST (0x02) IPTOS_RELIABILITY (0x04), IPTOS_THROUGHPUT (0x08) or IPTOS_LOWDELAY (0x10)
        See Also:
        DatagramSocket.setTrafficClass(int)
      • getSendBufferSize

        public int getSendBufferSize()
        Returns:
        the size of the send buffer
        See Also:
        DatagramSocket.getSendBufferSize()
      • setSendBufferSize

        public void setSendBufferSize​(int size)
        Parameters:
        size - The size of the send buffer
        See Also:
        DatagramSocket.setSendBufferSize(int)
      • getReceiveBufferSize

        public int getReceiveBufferSize()
        Returns:
        the size of the receive buffer
        See Also:
        DatagramSocket.getReceiveBufferSize()
      • setReceiveBufferSize

        public void setReceiveBufferSize​(int size)
        Parameters:
        size - The size of the receive buffer
        See Also:
        DatagramSocket.setReceiveBufferSize(int)
      • isBroadcast

        public boolean isBroadcast()
        Returns:
        true if SO_BROADCAST is enabled.
        See Also:
        DatagramSocket.getBroadcast()
      • setBroadcast

        public void setBroadcast​(boolean broadcast)
        Parameters:
        broadcast - Tells if SO_BROACAST is enabled or not
        See Also:
        DatagramSocket.setBroadcast(boolean)