|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
# n+ }& h3 N. L/ `8 Z" V, `' }1 h% j7 ]
mstcpip.h文件内容如下:7 h3 I( S4 H) L( W/ M
6 S) C( N( P8 e) s// Copyright (c) Microsoft Corporation. All rights reserved.
; L* q3 V' L( R$ X1 T#if _MSC_VER > 1000+ n7 c( _; X7 \
#pragma once& v0 j" l' C* D
#endif" R! C& k5 i6 Q7 H) _5 i* u$ @' n, s
4 b2 T3 y% j+ f' h
/* Argument structure for SIO_KEEPALIVE_VALS */; G' z( e6 M4 O/ G s' J
# g) I4 I& N, W: d1 o. J7 Jstruct tcp_keepalive {1 Z5 |' f' _9 k5 z5 @
u_long onoff;
2 A9 j# w% y% R% Q u4 x6 E9 e u_long keepalivetime;
; ]) t% l# n* c9 v u_long keepaliveinterval;
. G3 ~/ @$ R! W; Y0 c- d};
1 k8 C8 F0 n/ A* K: _- M c" v" k7 a
// New WSAIoctl Options1 y9 H' C3 R- R8 V! @
8 p" z- T) w9 x! s& H! x' r7 Z9 `$ \
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
% x- y5 R# z% S- I#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)" N# ^ n0 x, p2 y7 Q# B6 j6 r
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)+ r! B5 W( p* q+ S; \
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
1 a0 g$ t6 o5 _+ o, m+ x: p `#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)9 S) l' n5 n1 r
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)) ?0 a( e, {) f% ~2 J' C% v/ ?) {
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)
4 @ j/ h; ` G& ^* X7 ?# w( }4 H0 k#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
. E. V; Z% d1 P7 W; V) r#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9). W# w' U6 U1 W
#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
$ I. }8 q0 s3 V#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)8 G6 H* G9 {4 N: x+ P' }: @
3 Z6 v! _7 O1 J+ p% |9 X1 Y// Values for use with SIO_RCVALL* options
^; y4 t6 t4 o3 G2 l1 n3 |#define RCVALL_OFF 09 c& N5 e0 c. ^5 O; h: c. |/ B R
#define RCVALL_ON 12 u G0 l+ U: l) x& Q. J
#define RCVALL_SOCKETLEVELONLY 2
" s7 _6 w$ W% u2 W9 v; r |
|