|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包" u4 V! Y0 q. [
+ M3 F- q# f6 P) N& z' }
mstcpip.h文件内容如下:! T- R; W ~7 i! H0 y: [( Z
4 Q, N/ J1 ^; y0 f' S
// Copyright (c) Microsoft Corporation. All rights reserved.( W& W( d5 @; _. ^3 R3 H6 ]
#if _MSC_VER > 1000
& `& j. o# y& h* z! h#pragma once
X# f- |0 t5 u; a# h: c#endif
1 }+ V7 q# u) v, k" E. H3 a( ?
8 c6 U( z2 n+ H1 E( U' x/* Argument structure for SIO_KEEPALIVE_VALS */
+ J1 q, a) @7 v6 _) a3 Q( U4 {( r! D4 d6 }/ V3 B2 T
struct tcp_keepalive {
/ N3 \$ ], W @% o7 W* u' Y u_long onoff;
: I! Q1 ?8 d6 l# ~8 P! D& R u_long keepalivetime;
- i4 J1 O. m0 s# j u_long keepaliveinterval;
# a8 E& Z8 a3 S" L" v};! F7 X( V" d, F2 S
7 t. i; l0 Z4 H! M# _" ^. d# U
// New WSAIoctl Options. G% g* T0 R/ A! c1 q. N# n2 s$ W; j
& M5 v; q3 F! t#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)" v7 A6 x5 R! }6 N1 Z
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
1 b' C! C1 h8 t/ d$ B( _#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)2 m( o$ z1 Q; g8 W: {+ {; t
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
4 g& x5 d9 e" [& O2 \7 N+ |7 C- G#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)
' z& V4 }% A- N#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6). s' R2 ?: v: o
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)6 c9 Q: N% r0 _/ f. k0 P
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)# K% z H+ w; U7 s( }. V" X5 k
#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
* `& _2 I) Q* t9 I#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10); {* j, f1 @% I% d% s1 e$ u$ w/ I* _) r
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)& `7 J# l8 b0 y9 I9 k5 ]4 [+ m2 @
$ F1 K. Y, i0 J" x
// Values for use with SIO_RCVALL* options% ]: W) Z! K; |% n: ]' b- v9 G
#define RCVALL_OFF 0
# {0 H, e. }$ z# X& w6 u#define RCVALL_ON 10 K j- c0 s5 j9 M, N t
#define RCVALL_SOCKETLEVELONLY 2
+ f* U0 j2 |3 |* [4 ` |
|