next up previous contents
Next: bind Up: Methods Previous: accept   Contents

asyncSelect

Description

Requests event notification for the socket


Syntax

socket.asyncSelect(event)


Parameters

event
Integer. Specifies a combination of network events.

Value Description
$FD_READ Want to receive notification of readiness for reading.
$FD_WRITE Want to receive notification when data is available to be read.
$FD_OOB Want to receive notification of the arrival of out-of-band data.
$FD_ACCEPT Want to receive notification of incoming connections.
$FD_CONNECT Want to receive notification of connection results.
$FD_CLOSE Want to receive notification when a socket has been closed by a peer.


Returns

Boolean. If succeed, returns true. Otherwise returns false.




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.