This project is a simple key-value store application that supports communication over both TCP and UDP protocols. The application includes a server that handles key-value storage operations (PUT, GET, DELETE) and a client that interacts with the server to perform these operations.
-
Compile TCP-related files:
javac -d bin src/common/*.java src/tcp/*.java
-
Compile UDP-related files:
javac -d bin src/common/*.java src/udp/*.java
-
Start the TCP Server:
java -cp bin tcp.TCPServer 8080
8080is the port number the server listens on.
-
Start the TCP Client:
java -cp bin tcp.TCPClient localhost 8080
- Connects to the server at
localhoston port8080.
- Connects to the server at
-
Start the UDP Server:
java -cp bin udp.UDPServer 8080
8080is the port number the server listens on.
-
Start the UDP Client:
java -cp bin udp.UDPClient localhost 8080
- Connects to the server at
localhoston port8080.
- Connects to the server at