Package org.omegazero.net.client
Class PlainUDPClientManager
java.lang.Object
org.omegazero.net.common.SelectorHandler
org.omegazero.net.common.ConnectionSelectorHandler
org.omegazero.net.client.UDPClientManager
org.omegazero.net.client.PlainUDPClientManager
- All Implemented Interfaces:
Runnable,NetClientManager,NetworkApplication
-
Field Summary
Fields inherited from class org.omegazero.net.client.UDPClientManager
worker -
Constructor Summary
Constructors -
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.client.UDPClientManager
close, connection, handleSelectedKey, init, startMethods inherited from class org.omegazero.net.common.ConnectionSelectorHandler
handleConnectionClosed, loopIteration, onConnectionClosedMethods inherited from class org.omegazero.net.common.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
-
PlainUDPClientManager
public PlainUDPClientManager() -
PlainUDPClientManager
-
-
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
-