Package org.omegazero.net.nio.client
Class PlainUDPClientManager
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.PlainUDPClientManager
- All Implemented Interfaces:
Runnable
,NetClientManager
,NetworkApplication
UDPClientManager
implementation for plaintext TCP sockets.- 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
Constructors -
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.nio.client.UDPClientManager
close, connection, handleSelectedKey, init, start
Methods inherited from class org.omegazero.net.nio.util.ConnectionSelectorHandler
handleConnectionClosed, loopIteration, onConnectionClosed
Methods inherited from class org.omegazero.net.nio.util.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
-
PlainUDPClientManager
-
-
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
-