next up previous contents
Next: listen Up: Methods Previous: setSockOpt   Contents

ioctl

Description

Controls the mode of a socket.


Syntax

socket.ioctl(cmd[, value])


Parameters

cmd
Integer. Specifies the command to perform on the socket
value
Optional. Depends on the command to be performed.

Cmd Value Return Type Description
0x8004667E Boolean   Enable or disable nonblocking mode on the socket.
0x4004667F   Integer Determine the maximum number of bytes that can be read with one receive call from this socket.
0x80047307   Boolean Checks if we are at the 'out-of-band' marker in the stream


Returns

Depends on the command to be performed.




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