Package com.ensea_chatapp_udp.Client
Class UDPClient
java.lang.Object
com.ensea_chatapp_udp.Client.UDPClient
This is a class to implement a UDP Client which send data to the UDP server
The class takes two optional command line arguments: the first argument is the server ip address, and the second argument is server ip address. In the case that the address or ports are absent, the localhost is the default address and 8439 is the default port.
Usage: java com.ensea_chatapp_udp.Client.UDPClient
Usage: java com.ensea_chatapp_udp.Client.UDPClient server_ip
Usage: java com.ensea_chatapp_udp.Client.UDPClient server_ip server_port
-
Method Summary
-
Method Details
-
main
- Throws:
IOException
-
launch
launch the client in order to read data from command line and send it to server- Throws:
SocketException
-