开发者

Examples for Winsock?

What do you guys rec开发者_运维问答ommend 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?


Some are as follows:

  • Winsock Programming
  • Winsock Networking Tutorial (C++)
  • WinSock Tutorial


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


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜