Class UdpSO

  • public class UdpSO
    extends java.lang.Object
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static broadcast​(boolean on)
      Inet.SocketOption to set the SO_BROADCAST option
      static receiveBufferSize​(int size)  
      static reuseAddress​(boolean on)  
      static sendBufferSize​(int size)  
      static trafficClass​(int tc)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UdpSO

        public UdpSO()
    • Method Detail

      • broadcast

        public static broadcast​(boolean on)
        Inet.SocketOption to set the SO_BROADCAST option

        For more information see DatagramSocket.setBroadcast(boolean)

      • receiveBufferSize

        public static receiveBufferSize​(int size)
      • reuseAddress

        public static reuseAddress​(boolean on)
      • sendBufferSize

        public static sendBufferSize​(int size)
      • trafficClass

        public static trafficClass​(int tc)