Class Tcp.SO$

  • All Implemented Interfaces:
    Inet.SoForwarders
    Enclosing class:
    Tcp

    public static class Tcp.SO$
    extends java.lang.Object
    implements Inet.SoForwarders
    Scala API: this object contains all applicable socket options for TCP.

    For the Java API see TcpSO.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  Tcp.SO$.KeepAlive
      pekko.io.Inet.SocketOption to enable or disable SO_KEEPALIVE
      class  Tcp.SO$.KeepAlive$  
      class  Tcp.SO$.OOBInline
      pekko.io.Inet.SocketOption to enable or disable OOBINLINE (receipt of TCP urgent data) By default, this option is disabled and TCP urgent data is silently discarded.
      class  Tcp.SO$.OOBInline$  
      class  Tcp.SO$.TcpNoDelay
      pekko.io.Inet.SocketOption to enable or disable TCP_NODELAY (disable or enable Nagle's algorithm)
      class  Tcp.SO$.TcpNoDelay$  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Tcp.SO$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      SO$()  
    • Field Detail

      • MODULE$

        public static final Tcp.SO$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • SO$

        public SO$()
    • Method Detail

      • ReceiveBufferSize

        public org.apache.pekko.io.Inet.SO.ReceiveBufferSize$ ReceiveBufferSize()
        Description copied from interface: Inet.SoForwarders
        pekko.io.Inet.SocketOption to set the SO_RCVBUF option

        For more information see Socket.setReceiveBufferSize(int)

        Specified by:
        ReceiveBufferSize in interface Inet.SoForwarders
      • ReuseAddress

        public org.apache.pekko.io.Inet.SO.ReuseAddress$ ReuseAddress()
        Description copied from interface: Inet.SoForwarders
        pekko.io.Inet.SocketOption to enable or disable SO_REUSEADDR

        For more information see Socket.setReuseAddress(boolean)

        Specified by:
        ReuseAddress in interface Inet.SoForwarders
      • SendBufferSize

        public org.apache.pekko.io.Inet.SO.SendBufferSize$ SendBufferSize()
        Description copied from interface: Inet.SoForwarders
        pekko.io.Inet.SocketOption to set the SO_SNDBUF option.

        For more information see Socket.setSendBufferSize(int)

        Specified by:
        SendBufferSize in interface Inet.SoForwarders
      • TrafficClass

        public org.apache.pekko.io.Inet.SO.TrafficClass$ TrafficClass()
        Description copied from interface: Inet.SoForwarders
        pekko.io.Inet.SocketOption to set the traffic class or type-of-service octet in the IP header for packets sent from this socket.

        For more information see Socket.setTrafficClass(int)

        Specified by:
        TrafficClass in interface Inet.SoForwarders
      • org$apache$pekko$io$Inet$SoForwarders$_setter_$TrafficClass_$eq

        protected void org$apache$pekko$io$Inet$SoForwarders$_setter_$TrafficClass_$eq​(org.apache.pekko.io.Inet.SO.TrafficClass$ x$1)
        Description copied from interface: Inet.SoForwarders
        pekko.io.Inet.SocketOption to set the traffic class or type-of-service octet in the IP header for packets sent from this socket.

        For more information see Socket.setTrafficClass(int)

        Specified by:
        org$apache$pekko$io$Inet$SoForwarders$_setter_$TrafficClass_$eq in interface Inet.SoForwarders