|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
" a- M$ r' q/ i5 O& b- f
3 D! k* m' |0 t0 x$ ?. r( T9 `mstcpip.h文件内容如下:
0 _# G# B# r2 @+ q5 K, g( A' e; z8 Z: {8 a L7 v* L0 k8 g
// Copyright (c) Microsoft Corporation. All rights reserved.
/ b+ z0 y1 R4 [#if _MSC_VER > 1000
- ~2 H& p( p+ V1 j5 V& W#pragma once- m) I$ c( B) Z h- |4 t
#endif: T1 X7 [) _; O7 f9 k) ~# w$ v. m
( ~( R1 g( ]5 L& I8 p* d! g/* Argument structure for SIO_KEEPALIVE_VALS */
3 |9 k2 v* C; y- s
: n( |3 C, A( Q! N5 Y2 Sstruct tcp_keepalive {: U. `3 E2 @" [$ h; S
u_long onoff;8 P- ?, Y! V3 i& f
u_long keepalivetime;
1 ^/ u" {9 O3 n' @: e u_long keepaliveinterval;( z1 {3 d" G% p- d) m0 ?* r, S9 {
};- I" o. e: V& ]1 z7 D
- s0 P( s) H% y# V* b0 L// New WSAIoctl Options; w* x% O( G7 N. A7 L& F
+ \5 f# U: c/ D( @#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)) r. O7 z# w0 F! z
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
2 A9 U: O& \7 q- W#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
; i {$ E$ O" W# ?! i- c4 ?# \#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)0 _$ n* C F7 g' p& W% I
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)) D4 d3 D7 j$ x: J; C; I
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)3 R t. L8 u0 r }$ J
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)/ v& b4 q% Z# v( q D2 i% r& Q# w
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
3 k$ f, E6 n4 ]/ C# `, J#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
/ U9 u8 k: v7 r1 d1 P4 N; j#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10). g( y, ~. b+ Z6 j
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)3 I) }) K' N1 \2 U
$ A) e r( {6 m" k, Z8 R$ ?" z# o
// Values for use with SIO_RCVALL* options
1 n/ u9 Q9 S# O K1 r! ^( j- v#define RCVALL_OFF 0
* d d; i1 i i, z# r d+ X#define RCVALL_ON 1 H/ a' `" }! Z$ x0 n) b
#define RCVALL_SOCKETLEVELONLY 2. w) n& w6 L* D4 D7 B, |2 q
|
|