Package org.omegazero.net.nio.client
Class DTLSClientManager
java.lang.Object
org.omegazero.net.nio.util.SelectorHandler
org.omegazero.net.nio.util.ConnectionSelectorHandler
org.omegazero.net.nio.client.UDPClientManager
org.omegazero.net.nio.client.DTLSClientManager
- All Implemented Interfaces:
Runnable,NetClientManager,NetworkApplication
TLS client manager for UDP sockets (DTLS).
- API Note:
- Before version 2.1.0, this class was in package
org.omegazero.net.client.
-
Field Summary
Fields inherited from class org.omegazero.net.nio.client.UDPClientManager
workerCreator -
Constructor Summary
ConstructorsConstructorDescriptionDTLSClientManager(Function<SocketConnection, Consumer<Runnable>> worker, SSLContext sslContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelConnectioncreateConnection(SelectionKey selectionKey, ConnectionParameters params) protected voidCalled after a connect request on a connection.Methods inherited from class org.omegazero.net.nio.client.UDPClientManager
close, connection, handleSelectedKey, init, startMethods inherited from class org.omegazero.net.nio.util.ConnectionSelectorHandler
handleConnectionClosed, loopIteration, onConnectionClosedMethods inherited from class org.omegazero.net.nio.util.SelectorHandler
closeSelector, initSelector, isRunning, registerChannel, registerChannel, runSelectorLoop, selectorKeys, selectorWakeupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omegazero.net.common.NetworkApplication
run
-
Constructor Details
-
DTLSClientManager
public DTLSClientManager(Function<SocketConnection, Consumer<Runnable>> worker, SSLContext sslContext)
-
-
Method Details
-
createConnection
protected ChannelConnection createConnection(SelectionKey selectionKey, ConnectionParameters params) throws IOException - Specified by:
createConnectionin classUDPClientManager- Throws:
IOException
-
handleConnect
Description copied from class:UDPClientManagerCalled after a connect request on a connection.- Specified by:
handleConnectin classUDPClientManager- Parameters:
conn- TheChannelConnectionobject on which connect was called
-