|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
5 q5 W" V" s. n) P9 e
$ v: T! T1 k4 l; K3 ` ymstcpip.h文件内容如下:" Z. }) q6 ^4 V. `- n, F$ q
) d+ k4 f; B+ f2 Z- i- Z
// Copyright (c) Microsoft Corporation. All rights reserved.
; S8 b8 {6 U! E) [; d% h#if _MSC_VER > 1000
$ r% H: ~4 d& D; M7 e#pragma once
6 i3 Y3 e; \( w/ i5 A#endif
% l' d# V+ N9 U( p4 y$ I0 m9 F0 l8 h2 H, ^) ~. C6 a# Z
/* Argument structure for SIO_KEEPALIVE_VALS */
! k& U4 o- ~: ]+ ^: |8 v+ s
, E: `0 G" f$ W/ \0 Qstruct tcp_keepalive {
$ Q! u6 y' G" m: i/ \5 @ C u_long onoff;! z1 V1 I: t. g2 {
u_long keepalivetime;
3 C" L% N2 A- {" H! I u_long keepaliveinterval;
6 z6 A% X% c# R9 c; `: Y* _. u8 H};
0 R! w$ E4 W$ _4 j: z& M+ }6 G z' o6 f5 i
// New WSAIoctl Options1 H6 g' S( g; l* X) H( ~
3 v1 {' P# U+ s) D
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)$ | c, H& P1 i ?% X# [) T
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)6 Z6 ^. F( L. \# I! D9 \
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
Y. B) ^% e6 b0 v#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
8 _ l; z% }; r+ z#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)
. O, e8 ^/ F/ h. M#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)
) _! s7 W* m, g$ h#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)/ J1 G+ n# j* a1 }( e
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)4 p& `0 v1 W U I2 M1 ]! H3 Q: [
#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)# E2 C, ^: n4 ?! [& w
#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)' I" Q1 V. M0 q
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)
0 I4 N6 y0 N1 W& j# w1 G
' @" g. D' _( m& G }: L/ Q// Values for use with SIO_RCVALL* options
) q( N: ?7 d! B1 l& @0 r#define RCVALL_OFF 05 r/ B! I4 K, |. @: ?. n; M
#define RCVALL_ON 1
+ J2 Q2 M/ g% n# ~# m+ H: z#define RCVALL_SOCKETLEVELONLY 2
/ \+ X& F& n) \& h* W |
|