Package com.ensea_chatapp_udp.Server
Class UDPServer
java.lang.Object
com.ensea_chatapp_udp.Server.UDPServer
This is a class to implement a UDP Server which receives data and print it in console
The class takes an optional command line arguments: Server port In the case that port is absent, 8439 is the default port.
Usage: java com.ensea_chatapp_udp.Server.UDPServer
Usage: java com.ensea_chatapp_udp.Server.UDPServer server_port
-
Method Summary
-
Method Details
-
main
- Throws:
IOException
-
launch
launch the server in order to receive data from clients and print it in console- Throws:
IOException
-
toString
Returns state of the Server
-