Interface NetConfiguration

All Known Subinterfaces:
BootNetClientConfiguration, BootNetServerConfiguration, NetClientConfiguration, NetServerConfiguration

public interface NetConfiguration

Base network configuration.

Since:
1.6
Author:
Jeremy Kuhn
  • 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 false.

      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
    • idle_timeout

      Long idle_timeout()

      The channel idle timeout in milliseconds.

      null or <= 0 means no timeout.

      Returns:
      the idle timeout
    • idle_read_timeout

      Long idle_read_timeout()

      The channel read idle timeout in milliseconds.

      null or <= 0 means no timeout.

      Returns:
      the read idle timeout
    • idle_write_timeout

      Long idle_write_timeout()

      The channel write idle timeout in milliseconds.

      null or <= 0 means no timeout.

      Returns:
      the write idle timeout