|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包. k ?% \: t- W8 n
9 A7 J9 g6 x. C0 H( N& l
mstcpip.h文件内容如下:
% {" q5 F9 [( h4 a- W9 n' h7 z' i5 o& Z( X! J. ^5 r. ~. U
// Copyright (c) Microsoft Corporation. All rights reserved.; A& [" Z- M* Y5 v- ?
#if _MSC_VER > 1000% C7 h3 q6 W; G( I/ U
#pragma once4 e& _' y; `& L& `. V. P5 R
#endif
; s8 }; S% R( {- C& Y$ _
( @* ]/ P3 N1 X7 b! c9 i8 K8 R/* Argument structure for SIO_KEEPALIVE_VALS */
8 z6 ?; w7 W5 N8 C0 ^4 S' }2 D; |" d1 o& x1 [
struct tcp_keepalive {
6 i% ]# |7 I) x: b5 H$ E u_long onoff;2 Z0 r5 X1 x1 N5 ~; W9 ^
u_long keepalivetime;+ `) ^5 q0 U# R8 g+ D3 ]
u_long keepaliveinterval;0 l6 x4 X$ O* ~+ V4 ^, P
};( u, b4 ^4 v9 F
$ Y3 d$ v! H; [) E$ |8 ?7 u// New WSAIoctl Options
3 V! E5 R' h# K& s
* g: y9 i+ `! E5 n* S% j#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1), Q1 [% U0 O' {* W ~( V! g2 a2 I ~
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
- ^8 I8 Y1 G$ h# S; {. a% G: |1 o#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
" Q# w' E! v' {, f& Z3 k$ m# e2 I% B#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)! ~ t5 f% b& C$ w% s
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5) H% W4 F5 Y! f2 `- [
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)9 e# C9 C. R) L' P3 P( ?' R
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)7 _- ]' m+ I- x. O2 A: u. B9 M
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
" | K1 a3 ^4 B4 n- P- I#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
- n1 i0 E. H7 o4 ]$ B0 j& c#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)1 E0 |$ S& U2 e. x5 H4 s
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)% ^1 u3 z" X* h' u* Y/ ~; @, u
" ?$ k3 q) w6 H$ g// Values for use with SIO_RCVALL* options
3 o4 [, y2 q2 ]4 W9 f# a# E+ u% e% i- \#define RCVALL_OFF 0
7 m* P; h1 u! \8 c Q9 f1 `9 L#define RCVALL_ON 1; Q, M9 E6 r; P8 c" X% Y
#define RCVALL_SOCKETLEVELONLY 23 s- u5 { `: ? u/ O! _8 N) y+ q
|
|