Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2097483
  • 博文数量: 414
  • 博客积分: 10312
  • 博客等级: 上将
  • 技术积分: 4921
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-31 01:49
文章分类

全部博文(414)

文章存档

2011年(1)

2010年(29)

2009年(82)

2008年(301)

2007年(1)

分类: C/C++

2008-03-12 02:52:27

sockets

ioctl() requests supported by sockets 

Miscellaneous Information


s = socket(domain, type, protocol);


The NuTCRACKER Platform implements sockets on top of Winsock 2.0. All domains (address families), types, and protocols supported by Winsock 2.0 are supported.

FIOGETOWN  

This request is equivalent to fcntl(filedes, F_GETOWN).

FIOSETOWN  

This request is equivalent to fcntl(filedes, F_SETOWN, arg), respectively. The argument to the request is a process ID or process group ID, as described for F_SETOWN under .

FIOASYNC  

This request is equivalent to using the command F_SETFL to set or clear the O_ASYNC flag. The argument to the request is a variable of type unsigned long. If this variable is non-zero, the O_ASYNC flag is set, otherwise it is cleared.

FIONBIO  

This request is equivalent to using the command F_SETFL to set or clear the O_NONBLOCK flag. The argument to the request is a variable of type unsigned long. If this variable is non-zero, the O_NONBLOCK flag is set, otherwise it is cleared.

FIONREAD  

This request is used to determine the amount of data available to be read from the socket. The argument to the request is the address of a variable of type unsigned long, which receives the number of bytes currently available to be read.

SIOCATMARK  

This request is used to determine whether the current read position for the socket is pointing at out-of-bound data. The argument to the request is the address of a variable of type unsigned long. If the current read pointer is at out-of-band data, this variable is set to a non-zero value. If the current read pointer is not at out-of-band data, the variable is set to zero.


None.


MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


Functions:
,


MKS Toolkit 9.1 Documentation Build 7.


阅读(942) | 评论(0) | 转发(0) |
0

上一篇:tchars类型

下一篇:CAsyncSocket运作流程

给主人留下些什么吧!~~