该用户从未签到
|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
5 n0 K$ T# \0 d: {5 B8 o% }3 _4 e% s8 I( y- b u: ]6 y
mstcpip.h文件内容如下:" Q$ _. r# H- `+ l9 I# K: I% m
, R7 D1 V: r8 o8 z$ h- g
// Copyright (c) Microsoft Corporation. All rights reserved.
2 O5 L8 [0 }- h( ~4 ]; J1 R. L% X#if _MSC_VER > 1000
; R; g6 G* l; y4 j3 z; A- \7 S9 b5 ~+ G#pragma once
3 ^4 D' l5 a6 y$ I: C#endif
* t# ?0 v5 Q% b) X, N. ^) D/ D Q
: O S" R. o2 R" R/* Argument structure for SIO_KEEPALIVE_VALS */* \& d. K a. K- s
+ E4 ^$ `- ]' M; J( O0 sstruct tcp_keepalive {
! j/ T6 u. h4 ^' a' f$ }0 g1 S u_long onoff;
0 K5 H# f' y b! f+ L+ h7 N/ j u_long keepalivetime;
4 S. K! z3 u; F) E u_long keepaliveinterval;! @- t, e% Z0 Q, d) y" B/ }
};( D! ^. c/ g: \9 M; Q! @5 G
" O; }5 ~" p( p$ |4 M// New WSAIoctl Options
5 z! t! ~; w: a9 d1 v, j3 j0 g" [+ G' N$ ]. y) l
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)) v0 k* g' m4 I9 T% t+ E
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
2 x7 K! g5 w5 n) F' w#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)! f. R" t( o; p' T5 _, I1 n; D& ] v
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
4 l5 `% B) s: g$ _5 E; Q#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5) w; B# r9 \8 ~6 q' Q
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)* t8 j, J# e {, X
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)! r4 }' ]1 U4 G2 G1 s
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
) f v3 x! s" f4 J7 K4 |#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
* P! q2 _1 l' k0 M! f#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
: ^# @; z% k: g9 I4 x! V( R: U#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)
4 [% s9 U6 V5 B- g M6 ]8 G' V4 T) I( f
// Values for use with SIO_RCVALL* options# ?1 C% Z. P' }
#define RCVALL_OFF 0
3 w2 @* k1 B w3 _* Q1 U d( i0 F#define RCVALL_ON 1
+ m# q: ]( W; ]1 S#define RCVALL_SOCKETLEVELONLY 2
( H( P0 A" P. ?+ x! _$ B |
|