I’m writing a file transfer application in VC++(Server) using UDP. I came to know in winsock2, there are some functions which are useful in file transfer. Can anybody help me. I’m also looking for a sample application of TransmitPackets of winsock2 but not gettng. Please help me. Thank you.
I’m writing a file transfer application in VC++(Server) using UDP. I came to know
Share
http://www.mycplus.com/source-code/c-source-code/udp-sender-and-receiver/
http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedcode1e.html
http://msdn.microsoft.com/en-us/library/ms740566%28VS.85%29.aspx
Here is the sample application and source code which will help you.
edited:
Following is the sender function which take string, size of string, IP and Port and send packets over UDP.
Following is the receiver function of UDP.