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 AbstractClientHandlernewClientHandler(Socket socket) Factory method for creating the newAbstractClientHandlerfor handling requests.voidrun()
-
Konstruktordetails
-
SimpleSocketServer
Instantiates a newSimpleSocketServerobject- Parameter:
ports- the ports- Löst aus:
IOException- the io exception
-
-
Methodendetails
-
newClientHandler
Factory method for creating the newAbstractClientHandlerfor handling requests. This method is invoked in the run method and can be overridden so users can provide their own version of a newAbstractClientHandlerfor custom handling requests.- Parameter:
socket- the socket- Gibt zurück:
- the new
AbstractClientHandlerfor handling requests.
-
run
public void run()
-