在C中的套接字编程中选择功能 [英] select function in the socket programing in c

查看:45
本文介绍了在C中的套接字编程中选择功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为客户端和服务器之间的TCP连接创建了一个程序...

但是我想在其中使用选择功能...

我指的是MSDN网站.

我得到了select语句的功能..
我读了语法.
我不明白什么是输入参数和输出参数..

请给我小的编码吗?

拜托,我在Windows平台上需要它.

重新标记,改进拼写并取消某些语句的大小写.[/Edit]

I create a program for TCP connection between the client and the server...

But I want to use the select function in that...

I refer the MSDN website..

I get what is function of the select statement..
I read the syntax.
I can''t understand what is the input parameter and the output parameters..

Please can you give small coding?

Please, I need it in the Windows platform.

Retagged, improved spelling and decapitalized some statements.[/Edit]

推荐答案

有关该主题的在线资源很多:
http://www.scottklement.com/rpg/socktut/selectserver.html [ ^ ]
http://www.lowtek.com/sockets/select.html [ http://www.mapkreke.com /blog/2007/03/09/unix-using-select-with-multiple-sockets-in-c/ [
There''s a lot of resources online on the topic:
http://www.scottklement.com/rpg/socktut/selectserver.html[^]
http://www.lowtek.com/sockets/select.html[^]
http://www.mapkreke.com/blog/2007/03/09/unix-using-select-with-multiple-sockets-in-c/[^]


这篇关于在C中的套接字编程中选择功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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