Package deltix.util.vsocket.transport
Class DatagramConnection
- java.lang.Object
-
- deltix.util.vsocket.transport.DatagramConnection
-
- All Implemented Interfaces:
Connection
public class DatagramConnection extends java.lang.Object implements Connection
-
-
Field Summary
Fields Modifier and Type Field Description java.net.DatagramSocket
socket
-
Constructor Summary
Constructors Constructor Description DatagramConnection(java.net.DatagramSocket socket, java.net.InetAddress address)
-
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)
- Specified by:
create
in interfaceConnection
-
getRemoteAddress
public java.net.InetAddress getRemoteAddress()
- Specified by:
getRemoteAddress
in interfaceConnection
-
close
public void close()
- Specified by:
close
in interfaceConnection
-
create
public VSocket create(VSocket stopped) throws java.io.IOException
- Specified by:
create
in interfaceConnection
- Throws:
java.io.IOException
-
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
-
-