Package org.omegazero.net.server
Interface NetServer
- All Superinterfaces:
NetworkApplication
,Runnable
- All Known Implementing Classes:
DTLSServer
,PlainTCPServer
,PlainUDPServer
,TCPServer
,TLSServer
,UDPServer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setConnectionCallback
(Consumer<SocketConnection> handler) Sets the callback for a new incoming request.
The first parameter of this callback is anSocketConnection
instance representing the new connection from the client.Methods inherited from interface org.omegazero.net.common.NetworkApplication
close, init, run, start
-
Method Details
-
setConnectionCallback
Sets the callback for a new incoming request.
The first parameter of this callback is anSocketConnection
instance representing the new connection from the client.- Parameters:
handler
- The connection callback
-