UDP server problem

I want to achieve a multithreaded UDP server program now, windows, do not know how to write. Is to write the TCP completion port before, but now want to put him into the UDP, the modified not, also do not know how to modify, post here. My UDP server is implemented to receive and write it on the audio and video stream file. But according to different users, to write a different file, do not know how to implement according to the completion port, or you have a good example? Thank you very much!

Started by Mamie at November 16, 2016 - 1:40 AM

Each UDP packet sent, can access IP and port to end through socket, which according to the written documents; of course, you can also define the identity of the client in the agreement, will mark the same data to a file on the line.

Posted by Van at December 01, 2016 - 2:18 AM

Help ~ please ask someone will this? Is the client data to the server, but the file stream according to the IP write?

Posted by Mamie at December 14, 2016 - 2:42 AM

, Cry for help. . . .

Posted by Mamie at December 19, 2016 - 3:00 AM

A client information statement:
Data members: the identity of the client (or IP and port), write the information file (such as: handle, path and so on)

Declare a client information management:
Client information class instance management online, and provide the method according to client identifier lookup client information, the method returns the client information, so you can according to the identity of the client to find the write file handle, and then is to write data to a file.,

Posted by Van at December 31, 2016 - 3:19 AM

In reply, of course implementation method more than this one

Posted by Van at January 12, 2017 - 4:15 AM