Class MdRequester

java.lang.Object
com.trdp.md.MdRequester
All Implemented Interfaces:
AutoCloseable

public class MdRequester extends Object implements AutoCloseable
  • Constructor Details

    • MdRequester

      public MdRequester(int localPort) throws IOException
      Throws:
      IOException
    • MdRequester

      public MdRequester(int localPort, long replyTimeoutUs) throws IOException
      Throws:
      IOException
    • MdRequester

      public MdRequester(int localPort, long replyTimeoutUs, long connectTimeoutUs, InetAddress bindAddress, int ttl, int qos) throws IOException
      Creates an MD requester with custom socket options.
      Parameters:
      localPort - the local UDP port to bind to (0 for ephemeral)
      replyTimeoutUs - the default reply timeout in microseconds
      connectTimeoutUs - the TCP connect/idle timeout in microseconds
      bindAddress - the local address to bind to, or null for wildcard
      ttl - the IP time-to-live for outgoing packets
      qos - the QoS value (IP Precedence 0..7)
      Throws:
      IOException - if socket creation or listener start fails
    • MdRequester

      public MdRequester(int localPort, long replyTimeoutUs, long connectTimeoutUs) throws IOException
      Throws:
      IOException
  • Method Details