What is User Datagram Protocol (UDP)?
Hello world… I will talk briefly about UDP. UDP protocol main feature decresing server and client between wait time. So, What is wait time? I will give http protocol example. Client was request firstly wait answer from server. Server was run and a return response to client. That is no has on udp protocol. Server and Client don’t use ack direct reading data.
Data will be lost occur. Udp has max data size. UDP maximum packet size will be 65,535 bytes.If you pass max size. An error oncour.
Solution, splitting byte package and one by one sending. You will sum all byte to server and processing.
Example. 100 person want to join one train wagon. But one wagon can hold max 20 person. It is need 5 wagon.
That’s why we use splitting byte. Data may be lost and delay. Byte calculation important process.
I writed example code with golang. I will explain code detail next time.
Plase for example code below click to link
Project Link: github
https://github.com/celalsahinaltinisik/golang
References:
gocv
hybridgroup
net
gzip
bytes
For Other Golang Packages