|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
& q" O' f$ `' {6 R4 y& p
5 ]. c4 f1 g3 f1 {mstcpip.h文件内容如下:
5 Z6 Q# @. Z0 H W
7 K4 O I; l5 e* c6 k1 P; R# s// Copyright (c) Microsoft Corporation. All rights reserved.
& X+ e2 ]& G1 p0 d: } B#if _MSC_VER > 10009 c- Q6 G# j% H; D
#pragma once
& }2 X! N! y5 k+ ~9 x/ i% \. {#endif
" {6 T, [, ]- f0 u* h0 |% _: p Y0 o/ N: s' Y
/* Argument structure for SIO_KEEPALIVE_VALS */
* d4 {5 X2 ?4 N Y
3 i2 n) s& T6 kstruct tcp_keepalive {
3 k! {# N J; A& O& r7 R) N u_long onoff;
$ m% m# t) H, e+ {6 x0 h& v u_long keepalivetime;
% w! w1 @! Q9 s# U7 q: y u_long keepaliveinterval;
( D- W q& ~8 K m& K};
- f6 d7 h9 e4 Q, T B( P1 O3 s9 E9 m
// New WSAIoctl Options
* V2 v! P; r* z7 O7 Q5 r/ E: b$ ~
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)! L4 i7 p. l. H# B6 X' T2 g2 J: @$ d
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
0 Q# Z. S4 s( t6 X) A4 U/ z' k#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
3 H4 B5 o1 A/ t# e! A) F#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
8 d% Z/ D9 d1 S& \9 l+ T6 J: j6 R#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)
; X! Z& E- b; i' S4 i6 w" {#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)
! e7 C0 P7 Q5 ?$ ~' r9 k#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)
* I: ^: I4 A7 t% d#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)' [( o4 K. c7 T! Z
#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)7 n( L( f c( L9 t% A+ d9 i: x( `
#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)8 w* X1 E) L1 ~. C
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)9 l% X$ L: T, o6 { `# x3 Y2 l% F
# b' X8 j& d, S: D" A/ p// Values for use with SIO_RCVALL* options
6 w+ f$ W$ v* @ U9 g#define RCVALL_OFF 0
. C7 C, Z& c2 r9 T& n/ d- ^#define RCVALL_ON 1
: f" N+ n& t( ?: V* C1 ~8 G+ s#define RCVALL_SOCKETLEVELONLY 2' `( i+ Y" b4 `+ `
|
|