public interface DTLSSocketFactory
DTLSSocketFactorys create DTLSSockets.| Modifier and Type | Method and Description |
|---|---|
DTLSSocket |
createDTLSSocket(InetAddress address,
int port)
Returns a dtls socket.
|
DTLSSocket |
createDTLSSocket(InetSocketAddress address)
Returns a dtls socket.
|
DTLSSocket createDTLSSocket(InetAddress address, int port) throws IOException
address - the server addressport - the server portIOException - if an I/O error occurs when creating the socketSecurityException - if a security manager has been installed and it does not permit access to the given remote addressDTLSSocket createDTLSSocket(InetSocketAddress address) throws IOException
address - the server addressIOException - if an I/O error occurs when creating the socketSecurityException - if a security manager has been installed and it does not permit access to the given remote address