java socket 多路复用_socket之IO多路复用

def select(rlist, wlist, xlist, timeout=None): #real signature unknown; restored from __doc__

"""select(rlist, wlist, xlist[, timeout]) -> (rlist, wlist, xlist)

Wait until one or more file descriptors are ready for some kind of I/O.

The first three arguments are sequences of file descriptors to be waited for:

rlist -- wait until ready for reading

wlist -- wait until ready for writing

xlist -- wait for an ``exceptional condition''

If only one kind of condition is required, pass [] for the other lists.

A file descriptor is either a socket or file object, or a small integer

gotten from a fileno() method call on one of those.

The optional 4th argument specifies a timeout in seconds; it may be

a floating point number to specify fractions of seconds. If it is absent

or None, the call will never time out.

The return value is a tuple of three lists corresponding to the first three

arguments; each contains the subset of the corresponding file descriptors

that are ready.

*** IMPORTANT NOTICE ***

On Windows and OpenVMS, only sockets are supported; on Unix, all file

descriptors can be used."""

pass

#classes

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值