UDP stands for User Datagram Protocol. It is a connectionless protocol. When you send data or message, you don’t know if it will get there, it could get lost on the way. There may be corruption while transferring a message. UDP does not use streaming and it uses datagrams instead of streams. It is light weighted. There is No ordering of messages It’s just like fire(send) and forgets! This means it is a lot faster, UDP does not provide a guarantee it will be delivered or not or also cannon tracked once fired.
UDP is an alternative Protocol to Transmission Control Protocol (TCP). UDP is commonly used for applications that can handle some packet loss. such as streaming audio and video.
Here we see the implementation of UDP using C#.
// Server-Side Implementation Of UDP:
UdpClient udpc = newUdpClient(7878);
Console.WriteLine("Server Started, servicing on port no. 7878");
Please Login to comment...