Package deltix.util.vsocket.transport
Class SocketConnection
- java.lang.Object
-
- deltix.util.vsocket.transport.SocketConnection
-
- All Implemented Interfaces:
Connection
public class SocketConnection extends java.lang.Object implements Connection
-
-
Field Summary
Fields Modifier and Type Field Description protected java.net.Socket
socket
-
Constructor Summary
Constructors Constructor Description SocketConnection(java.net.Socket socket, java.io.BufferedInputStream in, java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
VSocket
create(int code)
VSocket
create(VSocket stopped)
java.io.BufferedInputStream
getInputStream()
java.io.OutputStream
getOutputStream()
java.net.InetAddress
getRemoteAddress()
boolean
isLoopback()
void
setTransportType(TransportType transportType)
void
upgradeToSSL(javax.net.ssl.SSLSocketFactory sslSocketFactory)
-
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceConnection
-
getInputStream
public java.io.BufferedInputStream getInputStream()
- Specified by:
getInputStream
in interfaceConnection
-
create
public VSocket create(int code) throws java.io.IOException
- Specified by:
create
in interfaceConnection
- Throws:
java.io.IOException
-
create
public VSocket create(VSocket stopped) throws java.io.IOException
- Specified by:
create
in interfaceConnection
- Throws:
java.io.IOException
-
getRemoteAddress
public java.net.InetAddress getRemoteAddress()
- Specified by:
getRemoteAddress
in interfaceConnection
-
close
public void close()
- Specified by:
close
in interfaceConnection
-
isLoopback
public boolean isLoopback()
- Specified by:
isLoopback
in interfaceConnection
-
setTransportType
public void setTransportType(TransportType transportType)
- Specified by:
setTransportType
in interfaceConnection
-
upgradeToSSL
public void upgradeToSSL(javax.net.ssl.SSLSocketFactory sslSocketFactory) throws java.io.IOException
- Specified by:
upgradeToSSL
in interfaceConnection
- Throws:
java.io.IOException
-
-