|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包9 v9 z, I( Z$ {0 r& u# K# H1 [' E
* m5 ^% [. { j4 o; t
mstcpip.h文件内容如下:
$ Y- a/ _4 }8 V! T3 J) V1 E
' O/ _2 L# O% l+ V// Copyright (c) Microsoft Corporation. All rights reserved." d8 ?0 W: P& `; H5 ^
#if _MSC_VER > 1000$ H% D! Y% _) @
#pragma once2 N% z2 d# T" e9 M. ^* x
#endif
# A0 n- f$ n4 R$ k( R
( u' M- ]5 _2 Z3 h+ u2 h9 v2 s9 F+ ]/* Argument structure for SIO_KEEPALIVE_VALS */% A3 N6 }; @/ H1 a) `
" B8 B4 }3 ~: z4 U+ C; f& X! Kstruct tcp_keepalive {
6 G% a8 O# ]2 n2 ? u_long onoff;, }+ [) h7 a/ W3 V
u_long keepalivetime;
! x* E* A6 ^4 X( `# q$ Y u_long keepaliveinterval;
, r3 U/ T. S$ ]}; z7 p8 ^$ ~6 P# a! w3 j* ?
+ @. y T7 i( ~% l6 |// New WSAIoctl Options
3 ~1 V6 a: }: L1 b, F+ Y2 _5 o; Q, ^+ e6 s# B4 W8 t5 W& v/ ?
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)# U4 u" c! n, Y$ N1 g# P
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)- S& l1 H$ \: u5 H
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
% Q% O) Q: [3 N/ l2 F8 B#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)( ?- I: V) q+ e1 D4 R
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)8 R( z" u- Z$ J" B
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)1 d7 J z, W: g- ? Z) u
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)4 d4 ?, b# H! ^0 B& X
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
I& F; Z/ ~! s: `% N6 e- j#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9) s% J; B" z- O, N+ x& g7 j
#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
* X. ~0 `3 j( n$ C2 L, i5 i) D#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)7 r7 |# U/ g! s+ L: c. d# s
- i( A1 H; v. b7 P# ]// Values for use with SIO_RCVALL* options
; L3 C0 J: F" W$ u#define RCVALL_OFF 0
$ F% [1 N1 Q; l# Z0 X#define RCVALL_ON 13 U9 [& B( a, h2 ? V, C
#define RCVALL_SOCKETLEVELONLY 2
6 Y1 B% O2 Z0 _/ \; \" _+ o Y |
|