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 voidclose()intgetCode()VSocketInputStreamgetInputStream()VSocketOutputStreamgetOutputStream()java.lang.StringgetRemoteAddress()intgetSocketNumber()Serial number of this socket.voidsetCode(int code)java.lang.StringtoString()-
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:
getInputStreamin interfaceVSocket
-
getOutputStream
public VSocketOutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceVSocket
-
getRemoteAddress
public java.lang.String getRemoteAddress()
- Specified by:
getRemoteAddressin interfaceVSocket
-
close
public void close()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSocketNumber
public int getSocketNumber()
Description copied from interface:VSocketSerial number of this socket. Should be used only for easier identification of the socket during debug.- Specified by:
getSocketNumberin interfaceVSocket
-
-