UDP Server Client Example using C# Winforms

UDP and TCP are comminication protocols used across the internet,  UDP is faster than TCP but less safe for data losses, But it is not important for some case like video streaming. Who cares if a couple pixels are wrong in a video stream  🙂

I used UDP comminication in the industry in many projects mostly between C# application both server and client side, Also it is a good way to comminicate with siemens PLC s, S7 family has a UDP comminication block in its ladder diagram.

I m going to give you an exapmle of UDP Server and Client side programs. Normally we must run UDP/TCP servers codes under seperated threads other than main thread.

Server Side

 

 

.. The post is under construction…

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll Up