views:

183

answers:

5

What do you guys recommend for a resource for winsock?

I have an assignment that we have only have a few days to do that needs to send a simple packet using UDP (and receive the same type of packet).

I am fairly familiar with C# sockets but nothing with C++.

Any tips or resources?

A: 

How about the step-by-step guide to getting started with Windows Sockets programming from the Winsock documentation on MSDN.

Remus Rusanu
A: 

Possibly more advanced than you need right now but...

I have a series of (rather old) articles on writing scalable servers using Winsock and IO Completion Ports and a free framework of code.

The code and links to the articles are available here.

Len Holgate
A: 

You need UDP, so use

  1. sendto()
  2. recvfrom()

APIs (Windows).

http://msdn.microsoft.com/en-us/library/ms740148%28VS.85%29.aspx

http://msdn.microsoft.com/en-us/library/ms740120%28VS.85%29.aspx

Poni
+3  A: 

Besides the MSDN resource "Getting Started with Winsock" mentioned already I would recommend the "Winsock Programmer's FAQ" on tangentsoft.net.

oli_arborum