如何在C(Windows)中使用选择功能实现TCP程序?
问题描述:
我是在Windows下使用c中的select函数实现TCP程序的初学者.
我不知道怎么用.
MSDN仅定义选择功能,没有给出任何实现示例.
我也在Google中提到了一个例子.
但是我只能在linux下用c进行编码.
你能帮我吗..
请指导我使用选择函数创建TCP.
I''m a beginner to implement TCP program using select function in c under windows.
I don''t know how to use it.
MSDN only defines the select function and not giving any implementation example.
I also referred in google to get an example.
But I can get only coding in c under linux.
Can you help me..
Please guide me to create TCP using select function.
答
在掌握了TCP基础知识之前,请不要选择函数.通过Google可以找到许多示例,这些示例将向您展示如何创建一个简单的客户端/服务器系统.一旦熟悉了基础知识,就可以使用多个客户端等转到更高级的设置.
Forget the select function until you have mastered the basics of TCP. There are plenty of samples to be found through Google which will show you how to create a simple client/server system. Once you are comfortable with the basics you can move to the more advanced setups using multiple clients etc.
请参阅 ^ ].
老实说,您与 http://www.codeproject.com/script/Membership/是同一个人吗? View.aspx?mid = 7395065 [ ^ ]?我注意到你们在一起.同样的问题!—SA
See How to use the select function with socket in c under windows platform[^].
Honestly, are you the same person as http://www.codeproject.com/script/Membership/View.aspx?mid=7395065[^]?! I noticed you come together. Same question!—SA