如何在C(Windows)中使用选择功能实现TCP程序? [英] How to implement TCP program using select function in c (windows)?

查看:147
本文介绍了如何在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


这篇关于如何在C(Windows)中使用选择功能实现TCP程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆