I have always used the http protocol. I recently received a device. The device sends data to the server through the udp protocol. However, because I have never used the udp protocol, I don’t know how to deal with it.
I would like to ask, if the data is transmitted through the udp protocol, for example, the port is 123, is there a configuration file similar to conf, which records the processing program corresponding to the data transmitted through the udp transmission protocol with port 123? , and call the handler to process the data through the corresponding configuration path.
Or there is no conf file but there is a special path. Under this path are all programs that process the udp protocol. After the server receives the udp protocol, it goes one by one. Check. When the corresponding port is found, call
Nginx after 1.9 adds a stream module to support tcp and udp connections