选择并发送 [英] select and send

查看:54
本文介绍了选择并发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




对于socket,我知道如何使用select和recv,但我不知道怎么用
使用select和send ?

有人知道吗?


谢谢,


文斐

解决方案



" Wenfei" <叶******* @ hotmail.com>在消息中写道

news:11 ********************** @ o13g2000cwo.googlegr oups.com ...



对于socket,我知道如何使用select和recv,但我不知道如何使用select和send?
是否有人知道吗?

谢谢,

文斐




您需要在新闻组中询问您的操作系统,或者用于提供这些功能的

编译器或库。他们不是标准的C ++函数。


-Howard


Wenfei写道:< blockquote class =post_quotes>对于socket,我知道如何使用select和recv,但我不知道如何使用select和send?
有人知道吗?




我不能说comp.lang.c(规则可能已经改变了,因为我经常光顾它),但是在comp.lang.c ++中这是偏离主题的。尝试专用于您的操作系统的NG

- 网络编程是特定于操作系统的。


V


< blockquote>

" Wenfei" <叶******* @ hotmail.com>在消息中写道

news:11 ********************** @ o13g2000cwo.googlegr oups.com ...



对于socket,我知道如何使用select和recv,但我不知道如何使用select和send?
是否有人知道吗?

谢谢,

文斐




这是这个组的偏离主题,因为这没有定义按照C标准


< OT>

在我的系统上,如果你想发送(),你不需要使用select()

socket,一个只调用带有相应参数设置的send()。

< / OT>


Allan


Hi,

For socket, I know how to use select and recv, but I don''t know how to
use select and send?
Is anybody know?

Thanks,

Wenfei

解决方案


"Wenfei" <ye*******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...

Hi,

For socket, I know how to use select and recv, but I don''t know how to
use select and send?
Is anybody know?

Thanks,

Wenfei



You need to ask in a newsgroup for your operating system, or for the
compiler or library you''re using that provides these functions. They''re not
standard C++ functions.

-Howard


Wenfei wrote:

For socket, I know how to use select and recv, but I don''t know how to
use select and send?
Is anybody know?



I can''t speak to comp.lang.c (the rules may have changed since I
frequented it), but in comp.lang.c++ it''s off-topic. Try the NG
dedicated to your OS -- network programming is OS-specific.

V



"Wenfei" <ye*******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...

Hi,

For socket, I know how to use select and recv, but I don''t know how to
use select and send?
Is anybody know?

Thanks,

Wenfei



This is off-topic for this group as this is not defined by the C standard

<OT>
On my system, you do not need to use select() if you want to send() on a
socket, one just merely calls send() with the appropriate parameters set.
</OT>

Allan


这篇关于选择并发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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