This project is related to networking between server-client using UDP and TCP protocols.
Programs made using scoket programming to communicate between two sockets over a defind network using different protocols mainly TCP and UDP.
There are two cpp programs, compile them using compiler, g++
mainly and run provding the port numbers for server and hostname and port number for clients.
.\serverTCP 2000 2001
for server and .\clientTCP localhost 2000
, .\clientTCP localhost 2001
for the clients.
Basics of Socket programmming in TCP and UDP are used, For TCP
, it is creating a socket, binding it to the port, waiting for the client to send a request and the accepting it, and tgen sending and receiving messages. For UDP
, there is no need to accept the request for sending messages.
Creating an array of sockets of different port number and binding them respectively, and connecting them to their respective clients. This creates a one-to-many communication network
Apart from the basics taught in the lectures, This project is based on many-to-one network rather than one-to-one network, which was taught in the lectures. Many hosts are connected to a single server, sending message from a server send the message to all connected hosts.