|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
2 m1 G% l4 H, q) {
7 X: g7 p& |: l; c1 ]* Vmstcpip.h文件内容如下:
1 X5 Q+ v9 d( u w' c. k3 l% C0 {% _3 M `) W. n" Z N+ u: A
// Copyright (c) Microsoft Corporation. All rights reserved.
B2 B. }. @/ A. g, K0 Z#if _MSC_VER > 1000# K" W1 v, p& W* {8 |- Y3 p
#pragma once
0 u$ N: L/ e9 ?! e! h9 n#endif
; x8 Z. v% r/ g) c% w3 N/ b. F: @) o J6 z- z8 v n) C
/* Argument structure for SIO_KEEPALIVE_VALS */
- l5 |' U3 O4 P& z2 B5 ^8 m8 ^8 O4 t" X5 i W' u
struct tcp_keepalive {
# W' a: k) K/ j u_long onoff;
1 w6 Z! T$ l6 W% W3 z# N. P$ U2 ^ u_long keepalivetime;4 K5 L5 R2 _3 }0 h0 h6 E2 M
u_long keepaliveinterval;
; S$ ?4 f3 y! |};* m: I/ _- x( F" v& t
4 q# O) y1 o$ W1 J6 X: }1 ?( x
// New WSAIoctl Options
+ G5 V7 _' \+ x% J9 c. J
% l( d; p9 {( P/ P' I. p#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
' G8 p) g& J5 D$ g& a#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)+ h/ p7 S ]* Q5 R, X$ C: w
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
# o! v# E7 y }" _: p( y5 b X#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
; x8 t# v/ s! S8 }#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)) X4 n D j3 `) t9 I' e/ w
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)
: [6 T/ X" r- b$ m/ R% ^1 A0 E#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)8 {8 ]5 P q' f) K+ `
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
+ r e5 {8 ^7 U I4 a#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
8 Y% Y, Q) H( S: F# m) u#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
) y- S6 Y8 T! c" }; I# L#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)
; s; r- o" T& y& S' k5 m9 \
9 k- q p( a" M( U// Values for use with SIO_RCVALL* options( g% M) R5 {2 h/ X
#define RCVALL_OFF 0
" o6 x+ W& N6 M j' C1 _#define RCVALL_ON 1; D! U; V7 |/ a# g' K8 T8 b* W
#define RCVALL_SOCKETLEVELONLY 2
# t9 \; ?5 h& O3 W |
|