Class FileDescriptorSocketAddress

java.lang.Object
java.net.SocketAddress
io.servicetalk.transport.api.FileDescriptorSocketAddress
All Implemented Interfaces:
Serializable

public final class FileDescriptorSocketAddress extends SocketAddress
Special SocketAddress that allows to wrap an already existing filedescriptor.
See Also:
  • Constructor Details

    • FileDescriptorSocketAddress

      public FileDescriptorSocketAddress(int fd)
      Constructs a new instance which wraps an existing filedescriptor.
      Parameters:
      fd - the filedescriptor to wrap.
  • Method Details

    • getValue

      public int getValue()
      Return the filedescriptor value.
      Returns:
      the filedescriptor value.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object