Package deltix.util.vsocket
Class VSocketImpl
- java.lang.Object
-
- deltix.util.vsocket.VSocketImpl
-
-
Constructor Summary
Constructors Constructor Description VSocketImpl(ClientConnection cc, int socketNumber)
VSocketImpl(Connection c, int code, int socketNumber)
VSocketImpl(java.net.Socket s, java.io.BufferedInputStream in, java.io.OutputStream out, int code, int socketNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getCode()
VSocketInputStream
getInputStream()
VSocketOutputStream
getOutputStream()
java.lang.String
getRemoteAddress()
int
getSocketNumber()
Serial number of this socket.void
setCode(int code)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface deltix.util.vsocket.VSocket
getSocketIdStr
-
-
-
-
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
-
getInputStream
public VSocketInputStream getInputStream()
- Specified by:
getInputStream
in interfaceVSocket
-
getOutputStream
public VSocketOutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceVSocket
-
getRemoteAddress
public java.lang.String getRemoteAddress()
- Specified by:
getRemoteAddress
in interfaceVSocket
-
close
public void close()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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 interfaceVSocket
-
-