Click here to Skip to main content
15,922,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have functioning UDP socket code written in C++ from a LINUX platform. Winsock.h or Winsock2.h

My task is to port it to Windows. Unfortunately the development environment I have is Visual Studio 6.0 has differing constructs than the gcc compiler world on LINUX. Internet searches provide me plenty of .net solutions but nothing really for VS6.0.

Can someone either direct me to a link that contains such info or provide a sample code snippet.

Thanks
Posted

Google has a lot of links when entering "porting linux socket to windows".

One of the first results is an MSDN article: Porting Socket Applications to Winsock[^].

While Winsock has not much changed, you should consider to use a newer Visual Studio version rather the 18 year old VS6.
 
Share this answer
 
The link is very helpful thank you.
 
Share this answer
 
Comments
Richard Deeming 21-Sep-15 13:14pm    
If you have a question or comment, use the "Have a Question or Comment?" button underneath the relevant solution. Do not post it as a new solution!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900