|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包7 V. m- U0 u9 L+ L
3 x% o: E9 D) x/ [( A# ?/ ^
mstcpip.h文件内容如下:: Z' p* L0 w% s5 |" b
4 W8 G$ \5 K4 N/ M// Copyright (c) Microsoft Corporation. All rights reserved.% [1 P0 I7 [5 T# H7 H5 o6 M9 e
#if _MSC_VER > 1000) V' A+ G q$ z7 B8 s. e! @% H+ P
#pragma once5 N, U! i' a7 U
#endif
3 U0 E9 T( }; B4 ^' Q# H* i p7 ?! D. N8 B, C" g
/* Argument structure for SIO_KEEPALIVE_VALS */
/ b2 W8 _7 e* H# |; Q3 {0 @& X P) A6 H" M3 K
struct tcp_keepalive {- s# D% {1 N, q8 b/ P
u_long onoff;
5 U. A _; N" f8 S u_long keepalivetime;
4 S: d" v: n6 O/ {' d u_long keepaliveinterval;/ K) H8 A/ ]' Z. r7 U9 J& j
};$ |8 q" o/ m& `& ^6 u7 L" ?
. K8 b# O9 i: ?7 B
// New WSAIoctl Options; l' |& ]7 t3 n/ y
% t/ z/ K& [& T$ f: y( K8 L' m
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)& \5 ]; r* W! W2 u6 ^! i( `
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)2 c6 T$ @, l: c; _4 j/ P
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
) E3 R0 T3 y) z" W' c+ M#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4); G9 u, u3 @2 ?; b+ D
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)5 t+ ?, l& A) j5 d; y) E
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)5 _' M) x0 z( D& a
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)2 g* f8 M* \% ~$ n- e$ b
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
* Q* O) ^9 G; G! V* J" N6 S5 q7 W#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
6 f' [( b/ z9 j w H/ \$ O' D#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
9 e/ v2 j8 b A$ ]3 `7 u! X& Q#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)+ D3 s6 W7 |$ A! U
4 d+ k+ z! ` J+ E9 G& A& r+ L- T
// Values for use with SIO_RCVALL* options
2 ^5 H1 m* @3 V i/ `) P- o) }& s% A# }#define RCVALL_OFF 0- z- @1 b: A% }1 e s5 S7 E
#define RCVALL_ON 1
3 z5 h1 g/ P( m6 ]# \& ]#define RCVALL_SOCKETLEVELONLY 2
/ N) z4 H" J" q: F, J |
|