|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
% ~3 J) M; ^( S8 |% H6 g5 _8 b; I% I! L- |6 |; T" e, P5 k8 Z" r
mstcpip.h文件内容如下:
) u5 c* k5 j6 y5 l( r, ]6 W# v$ @& X8 c
// Copyright (c) Microsoft Corporation. All rights reserved.; |- {3 o2 L* T4 y
#if _MSC_VER > 10008 _! Q2 p! e' D
#pragma once
* x* x$ N9 U* \& \& M; t#endif! y+ J$ t8 Y# |
3 L* _: b$ Z( W3 F/* Argument structure for SIO_KEEPALIVE_VALS */
1 y" m: f9 ~9 S% h6 W4 S: t" x+ V$ p+ J
struct tcp_keepalive {
2 |' P: H& I4 D u_long onoff;
% x2 ~0 a/ e! t7 |% Z u_long keepalivetime;
: E7 J# ^" `* w4 |1 ~ u_long keepaliveinterval;
* @# y% H& |0 l: D};
+ z% W/ s" g# v8 x2 o: Q G$ b
! @: y0 U; @7 c' ]/ K// New WSAIoctl Options* w3 u- z7 a }( l5 s. N
M# G& H+ g1 H* N) c#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
3 f6 o7 u+ M; n2 Y# g#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
4 ]9 f4 V6 |6 T3 |3 ]1 Q- r- q' c#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3). ` y( P. D; `; }, u
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)" U, c# h) O5 h4 x7 p
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)
$ n. J8 c6 z. u: X0 ]4 Y3 ]#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)
- w3 u5 ?6 G; B2 M' s1 `#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)" a9 H5 t4 m1 j3 _) {; V0 M, s
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)6 Q9 d2 r/ F6 ~. `* d: B/ P9 P6 |
#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
, N3 C$ k0 ]9 f' q9 E+ N) c#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
2 i; a" k$ @. \5 N#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)
% m. m0 a; f2 d, F* G m8 v; O9 N6 p- j, Y; a
// Values for use with SIO_RCVALL* options
' w$ p. }; B1 X9 D" c" C#define RCVALL_OFF 0- n; V7 c# Y8 h% J
#define RCVALL_ON 16 K. \, Y" V3 |; Z9 q
#define RCVALL_SOCKETLEVELONLY 2$ {8 v( S; }. t) a4 P2 i, r( g
|
|