Package io.github.astrapi69.net.socket
Klasse SimpleSocketServer
java.lang.Object
io.github.astrapi69.net.socket.SimpleSocketServer
- Alle implementierten Schnittstellen:
Runnable
The class
SimpleSocketServer
.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected AbstractClientHandler
newClientHandler
(Socket socket) Factory method for creating the newAbstractClientHandler
for handling requests.void
run()
-
Konstruktordetails
-
SimpleSocketServer
Instantiates a newSimpleSocketServer
object- Parameter:
ports
- the ports- Löst aus:
IOException
- the io exception
-
-
Methodendetails
-
newClientHandler
Factory method for creating the newAbstractClientHandler
for handling requests. This method is invoked in the run method and can be overridden so users can provide their own version of a newAbstractClientHandler
for custom handling requests.- Parameter:
socket
- the socket- Gibt zurück:
- the new
AbstractClientHandler
for handling requests.
-
run
public void run()
-