C++ 温索克的例子?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2399377/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 23:21:42  来源:igfitidea点击:

Examples for Winsock?

c++resourceswinsock

提问by bobber205

What do you guys recommend for a resource for winsock?

你们对 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).

我有一项任务,我们只有几天的时间要做,需要使用 UDP 发送一个简单的数据包(并接收相同类型的数据包)。

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

我对 C# 套接字相当熟悉,但对 C++ 一无所知。

Any tips or resources?

任何提示或资源?

回答by oli_arborum

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

除了已经提到的 MSDN 资源“ Winsock 入门”之外,我还推荐tangentsoft.net 上的“ Winsock Programmer's FAQ”。

回答by Remus Rusanu

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

怎么样一步一步的指导,开始使用Windows socket编程从MSDN上的Winsock文档。

回答by Len Holgate

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.

我有一系列关于使用 Winsock 和 IO Completion Ports 以及一个免费的代码框架编写可扩展服务器的(相当旧的)文章。

The code and links to the articles are available here.

此处提供这些文章的代码和链接。