Class FileDescriptorSocketAddress

  • All Implemented Interfaces:
    java.io.Serializable

    public final class FileDescriptorSocketAddress
    extends java.net.SocketAddress
    Special SocketAddress that allows to wrap an already existing filedescriptor.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FileDescriptorSocketAddress​(int fd)
      Constructs a new instance which wraps an existing filedescriptor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int getValue()
      Return the filedescriptor value.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FileDescriptorSocketAddress

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

      • getValue

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object