This repository contains a client-server application for communication using both TCP and UDP protocols. Follow the instructions below to run the client and server files, and choose between debug modes.
node client.js 1
node client.js 0
Follow the on-screen instructions to choose between TCP and UDP.
If TCP is chosen:
ex: localhost 3000
If UDP is chosen:
ex: localhost 3001
Hit help
for available commands.
node server.js 3000 1
node server.js 3000 0
Run the testing files:
node test_1.js 0
node test_2.js 0
- Ensure correct port numbers and debug modes are used for both client and server.
- For UDP, the client's port number must differ from 3000.