|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包+ F/ B6 C! z$ \/ A1 c
: O# H. J/ H: R) b6 {6 W8 W% s
mstcpip.h文件内容如下:* Z0 x& L1 k8 ?8 d. D! z
6 ~' |5 Q0 J4 l: q// Copyright (c) Microsoft Corporation. All rights reserved.. } R U/ H* t# v
#if _MSC_VER > 1000/ V6 H0 m4 ?) T
#pragma once* `; ?$ F5 E9 a5 }1 m' k
#endif& Y' t3 P4 W5 c t6 q9 N
3 c( u9 Q" I3 N. o( J4 P" [& R/* Argument structure for SIO_KEEPALIVE_VALS */3 L) Z l* |4 _# g0 O! p8 k: B# {4 U
" k9 l9 T8 P- a. O/ Dstruct tcp_keepalive {7 J2 [$ Y& n: R( f( @
u_long onoff;
' l+ S8 Y; l; A u_long keepalivetime;
! h& t" x, P F/ k [6 M" e/ { u_long keepaliveinterval;8 i3 q2 {1 |7 @" ]
}; B0 O8 k4 ]7 j0 `9 y
0 z& ?2 ]( I6 q8 Z J$ x% i
// New WSAIoctl Options6 c& ^: J* `) @& k! }( Y4 K
8 Z# [- R1 P: _4 i
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
) k3 |& B! _) F#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)! R7 ?9 R& }, q5 n
#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
; a% y' j% `8 ^0 V7 V$ Y; _#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)( z6 T$ U; B/ A" M, _* @
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)7 S! I4 L6 s' N$ Y
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)* P; R5 s* M9 [& w% w
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)+ _# b- y+ P" ]+ H' z
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
& \, G* O: R" W2 P5 x" y# S#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)
4 O; d9 X+ o- [/ X#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
* s* I/ ^9 a' q8 K#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)
: z7 R" m% {* Z' q5 q, b! `; |8 e0 X; @' o# B9 N
// Values for use with SIO_RCVALL* options( f0 g& _4 E# z X$ |
#define RCVALL_OFF 07 D) i( L! I/ U
#define RCVALL_ON 1
7 v) A5 Y+ U C- c#define RCVALL_SOCKETLEVELONLY 23 S2 {' `- D Q9 L5 f% h
|
|