Computer Science, asked by tamannashakya64, 4 months ago

Write and execute a UDP client and a server program in C-language to perform the following tasks and show the result - The UDP client program sends a string ( in lower case letters) to the UDP server program - The UDP server program converts the string into upper case letters and then sends it to the client?

Answers

Answered by priyanshisinha216
0

Explanation:

In UDP, the client does not form a connection with the server like in TCP and instead just sends a datagram. Similarly, the server need not accept a connection and just waits for datagrams to arrive. Datagrams upon arrival contain the address of sender which the server uses to send data to the correct client.

UDP Client/Server function calls

The entire process can be broken down into following steps :

UDP Server :

  • Create UDP socket.
  • Bind the socket to server address.
  • Wait until datagram packet arrives from client.
  • Process the datagram packet and send a reply to client.
  • Go back to Step 3.
Similar questions