该用户从未签到
|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
2 I' G: p' l+ f3 P% M' l
, R+ u1 y, x9 q Y! T5 qmstcpip.h文件内容如下:3 Q4 A7 W) Z- r U8 U3 \
0 a- x9 k& Z% A
// Copyright (c) Microsoft Corporation. All rights reserved.
0 H. {9 A3 t: A( S: M [) s#if _MSC_VER > 1000
2 M# k) {! ?, t; {' R' B#pragma once
, e( G0 z& O1 \3 P2 \! Q% |# L7 `#endif, k/ j! k$ \4 y" E" D" ]; F
) ~( u x; v' J5 t9 s$ D/* Argument structure for SIO_KEEPALIVE_VALS */# D0 c2 s6 ]1 n, x
{2 Z" Y# e5 y ^: A) s
struct tcp_keepalive {
6 H1 U' p( w. U/ ` u_long onoff;* e& A9 P) F- u! Y$ `5 n" ^
u_long keepalivetime;
8 @$ \ {2 x# o5 q u_long keepaliveinterval;/ h6 M* P3 J' e% Z9 }' g( q& F3 ^
};
) t: x7 v3 x9 x) G7 O4 x+ N& ]- ]+ j7 S4 u$ T; ?5 I
// New WSAIoctl Options+ A1 Z1 b* C9 y# B+ S
4 `; W4 a5 P" v#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)4 ~) ^8 F" A$ b- e4 g( X0 N0 f7 p7 r
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)9 l6 w/ Q7 q1 o1 S. s% n! ?' c
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
2 q$ b8 P k' i$ U! v0 @! S#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)8 I! I! @* q8 @* e6 A
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)
! a! ]6 L( d8 j: x I: j#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)0 x6 \/ L. z( j# g. c7 C7 [
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)# n ~1 ]! i& o: p
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)+ T! z! a4 ~0 _8 [
#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
* ^+ n5 o' K3 Q% B3 X k#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)5 B6 E0 ]6 }4 V7 _( E; q( o
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)# ?3 n# P1 f& _7 B, N2 H7 v
# V. Z/ C: B8 ^' n; n7 s( T' n// Values for use with SIO_RCVALL* options7 d0 l& H9 w& r$ e: {5 n2 f
#define RCVALL_OFF 0
* M0 k, l1 p) Q0 R#define RCVALL_ON 1
% N L3 i2 R) |# a @#define RCVALL_SOCKETLEVELONLY 2# I: F$ ^, f2 U M: `
|
|