|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
% C' U3 t- n# F9 l- D8 `6 [* T8 `# O8 v1 u' g6 D) G8 p/ K: p
mstcpip.h文件内容如下:
9 l; J( F* G3 d. h/ g9 m3 z) e; K6 n8 k* O
// Copyright (c) Microsoft Corporation. All rights reserved.
+ e' N: x1 G! n2 N$ U#if _MSC_VER > 1000
; o" E3 X0 H& H" m7 d# r1 m#pragma once
7 |2 Y( V, Y/ X b" A, P6 S#endif; f, k% H1 `1 z- |2 N k
/ p$ P" x/ P4 `
/* Argument structure for SIO_KEEPALIVE_VALS */
9 z2 ]+ N- M, \, d7 m: S2 P, p& x. r' r5 } |
struct tcp_keepalive {
% L1 w& Y- J2 A# U; A, n& [, R" J { u_long onoff;
. c/ ^. v9 Z4 I: J7 x+ p u_long keepalivetime;) M) L" S! Z, j: X* _! D
u_long keepaliveinterval;) K4 L+ W3 Y& K& l
};0 J' |6 _" x+ m4 x
" v% H% {! n' ^6 U// New WSAIoctl Options
; \ G3 r6 H( b+ B- v' K1 q
7 V: O% B' s! S#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
2 B, n6 Z- J# e' s#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
% c4 w5 L: S6 c4 T' J#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3); u3 `+ V; `: u5 l. K' H
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
7 N& I0 G' W- f5 t#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)4 B# z- M" O* F$ I9 a
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)4 G; y- @- `( R, K9 w
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)
, n1 ?: A4 F- n V! x& i: E#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8); T7 Y0 x* H0 T! N' s3 j
#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
+ W- H9 \2 W& R0 R" A% F$ e4 c, b2 _#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
! O* T8 b, z+ @) w; e#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)
1 S+ q5 o2 K8 \! M
. i2 K" a3 A% u, |' D0 V( V// Values for use with SIO_RCVALL* options
2 B5 I% J% X6 ~- N* Q A#define RCVALL_OFF 0
( B! h- ]0 v' p" _#define RCVALL_ON 1+ e. Z, ]5 V& o
#define RCVALL_SOCKETLEVELONLY 26 P v; [$ C' p3 ~6 q6 p
|
|