Jahyun Ginny Kim — Peer-to-Peer Chat via UDP
Peer-to-Peer Chat via UDP
Peer-to-Peer Chat via UDP
Peer-to-Peer Chat via UDP
This program provides client to client chatting via UDP protocol.
The server only keeps the list of clients and offline messages.
A client talks to another client directly from one port to another.
Both the server and client implement two sockets, one regular quote to quote socket and one multicast socket.
The regular socket is used for communication with clients such as for registration, de-registration, or saving or loading offline messages.
The multicast socket is used for broadcasting the updated client table to all available clients.
Each client receives the table of clients immediately after it has been updated in the server.
The client implements multithreads (sender and receiver) in order to simultaneously send and receive packets.
The acknowledgments are sent from the receiver thread.
Codes:
UdpChat.java
UdpClient.java
UdpServer.java
User.java
Message.java
Makefile
ReadMe and Test Output:
README.txt
test.txt