Interface NetConfiguration

All Known Subinterfaces:
BootNetClientConfiguration, BootNetServerConfiguration, NetClientConfiguration, NetServerConfiguration

public interface NetConfiguration

Base network configuration.

Since:
1.6
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    The IP type of service.
    default boolean
    Enables/Disables socket keep alive.
    The linger-on-close timeout in milliseconds.
    The receive buffer size.
    default boolean
    Enables/Disables socket address re-use .
    default boolean
    Enables/Disables socket port re-use.
    The send buffer size.
    default boolean
    Enables/Disables TCP cork.
    default boolean
    Enables/Disables TCP no delay.
    default boolean
    Enables/Disables TCP quick ack.
  • Method Details

    • reuse_address

      default boolean reuse_address()

      Enables/Disables socket address re-use .

      Defaults to true.

      Returns:
      true if the option is enabled, false otherwise
    • reuse_port

      default boolean reuse_port()

      Enables/Disables socket port re-use.

      Defaults to true.

      Returns:
      true if the option is enabled, false otherwise
    • keep_alive

      default boolean keep_alive()

      Enables/Disables socket keep alive.

      Defaults to false.

      Returns:
      true if the option is enabled, false otherwise
    • tcp_no_delay

      default boolean tcp_no_delay()

      Enables/Disables TCP no delay.

      Defaults to true.

      Returns:
      true if the option is enabled, false otherwise
    • tcp_quickack

      default boolean tcp_quickack()

      Enables/Disables TCP quick ack.

      Defaults to false.

      Returns:
      true if the option is enabled, false otherwise
    • tcp_cork

      default boolean tcp_cork()

      Enables/Disables TCP cork.

      Defaults to false.

      Returns:
      true if the option is enabled, false otherwise
    • linger

      Integer linger()

      The linger-on-close timeout in milliseconds.

      Returns:
      the linger-on-close timeout or null
    • rcv_buffer

      Integer rcv_buffer()

      The receive buffer size.

      Returns:
      the receive buffer size
    • snd_buffer

      Integer snd_buffer()

      The send buffer size.

      Returns:
      the send buffer size
    • ip_tos

      Integer ip_tos()

      The IP type of service.

      Returns:
      the IP type of service