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.
.. The post is under construction…