|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包* _. h/ {% d* R( w7 |% g! I
$ H0 x0 i9 }3 n& I0 u, O" n
mstcpip.h文件内容如下:
" v% O2 M0 k9 B4 v6 r3 R/ c
3 Q% O" U$ M9 X! I// Copyright (c) Microsoft Corporation. All rights reserved.
3 m' q$ Q2 c2 F. r7 \" d% a#if _MSC_VER > 1000
; ?1 ^* p" K( _& S4 t, f0 n0 d! j#pragma once
7 j* J* L/ W) I! i0 S#endif5 \+ w6 l7 [( \- ~$ M- C( b( U8 d
+ l9 h6 j& e, D; Z- s/* Argument structure for SIO_KEEPALIVE_VALS */% }$ k8 f1 K/ n$ J% h) l0 }8 Q9 K
7 b2 O' `- L9 U" u. e# Sstruct tcp_keepalive {
6 c" V$ J, z+ l u_long onoff;% U$ s4 V4 {3 x5 \- Q* T5 w# Q
u_long keepalivetime;0 Q* _3 U! R% m/ j4 o8 k
u_long keepaliveinterval;
! S2 \! J% n* I- M" H P" t7 y};
6 ~+ W: k$ z# Y& @3 |8 o G8 d& @/ r0 e7 y8 {! m" z
// New WSAIoctl Options; W# Y8 ^4 F6 g4 b5 Q: a' C
4 Z' y, `$ V3 h5 p" [#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)4 ?7 }$ G, q: J
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2); d5 G0 t: o6 ?2 i7 h% u
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
$ E- N- C' v( F g& u#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4): ]3 e3 M! Q/ W7 {& Z1 Q
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)# ~: h( c/ G4 q S4 f! Z3 O
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)* V& L) l9 I. X2 n
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)
0 F6 x0 U% r* [9 \#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
* q0 p! q, s) q! e#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
Z- S+ M: c, p- C# n- z* Y#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)7 i0 u |+ |4 S* @( \' G- c& E( Q2 y
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)! U( f( {9 V S- H+ j
# S$ D; F& B2 p% R9 e J, f// Values for use with SIO_RCVALL* options
0 M0 W5 |* P* n4 `) }0 M, @. N/ v#define RCVALL_OFF 0& t1 k- ?6 f$ o( S1 n
#define RCVALL_ON 1
6 B/ ~# e: o6 }" f/ d4 S+ F#define RCVALL_SOCKETLEVELONLY 2
' Q: t$ v& K# y9 O, k0 S |
|