Class VSocketImpl

  • All Implemented Interfaces:
    deltix.util.lang.Disposable, VSocket, java.io.Closeable, java.lang.AutoCloseable

    public class VSocketImpl
    extends java.lang.Object
    implements VSocket
    Date: Mar 5, 2010
    • Constructor Detail

      • VSocketImpl

        public VSocketImpl​(ClientConnection cc,
                           int socketNumber)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • VSocketImpl

        public VSocketImpl​(java.net.Socket s,
                           java.io.BufferedInputStream in,
                           java.io.OutputStream out,
                           int code,
                           int socketNumber)
      • VSocketImpl

        public VSocketImpl​(Connection c,
                           int code,
                           int socketNumber)
    • Method Detail

      • getCode

        public int getCode()
        Specified by:
        getCode in interface VSocket
      • setCode

        public void setCode​(int code)
        Specified by:
        setCode in interface VSocket
      • getRemoteAddress

        public java.lang.String getRemoteAddress()
        Specified by:
        getRemoteAddress in interface VSocket
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface deltix.util.lang.Disposable
        Specified by:
        close in interface VSocket
      • toString

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

        public int getSocketNumber()
        Description copied from interface: VSocket
        Serial number of this socket. Should be used only for easier identification of the socket during debug.
        Specified by:
        getSocketNumber in interface VSocket