Package org.omegazero.net.client
Class DTLSClientManager
java.lang.Object
org.omegazero.net.common.SelectorHandler
org.omegazero.net.common.ConnectionSelectorHandler
org.omegazero.net.client.UDPClientManager
org.omegazero.net.client.DTLSClientManager
- All Implemented Interfaces:
Runnable
,NetClientManager
,NetworkApplication
-
Field Summary
Fields inherited from class org.omegazero.net.client.UDPClientManager
worker
-
Constructor Summary
ConstructorsConstructorDescriptionDTLSClientManager
(Consumer<Runnable> worker) DTLSClientManager
(Consumer<Runnable> worker, Collection<X509Certificate> additionalTrustCertificates) DTLSClientManager
(Consumer<Runnable> worker, TrustManager[] trustManagers) -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelConnection
createConnection
(SelectionKey selectionKey, ConnectionParameters params) protected void
Called after a connect request on a connection.Methods inherited from class org.omegazero.net.client.UDPClientManager
close, connection, handleSelectedKey, init, start
Methods inherited from class org.omegazero.net.common.ConnectionSelectorHandler
handleConnectionClosed, loopIteration, onConnectionClosed
Methods inherited from class org.omegazero.net.common.SelectorHandler
closeSelector, initSelector, isRunning, registerChannel, registerChannel, runSelectorLoop, selectorKeys, selectorWakeup
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.omegazero.net.common.NetworkApplication
run
-
Constructor Details
-
DTLSClientManager
public DTLSClientManager() -
DTLSClientManager
-
DTLSClientManager
public DTLSClientManager(Consumer<Runnable> worker, Collection<X509Certificate> additionalTrustCertificates) -
DTLSClientManager
-
-
Method Details
-
createConnection
protected ChannelConnection createConnection(SelectionKey selectionKey, ConnectionParameters params) throws IOException - Specified by:
createConnection
in classUDPClientManager
- Throws:
IOException
-
handleConnect
Description copied from class:UDPClientManager
Called after a connect request on a connection.- Specified by:
handleConnect
in classUDPClientManager
- Parameters:
conn
- TheChannelConnection
object on which connect was called
-