Skip to content

HDC432/SingleServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Key-Value Store Application (TCP & UDP)

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.


Running the Application

Compilation Instructions

  • 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

1 TCP Mode

  • Start the TCP Server:

    java -cp bin tcp.TCPServer 8080
    • 8080 is the port number the server listens on.
  • Start the TCP Client:

    java -cp bin tcp.TCPClient localhost 8080
    • Connects to the server at localhost on port 8080.

2️ UDP Mode

  • Start the UDP Server:

    java -cp bin udp.UDPServer 8080
    • 8080 is the port number the server listens on.
  • Start the UDP Client:

    java -cp bin udp.UDPClient localhost 8080
    • Connects to the server at localhost on port 8080.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages