该用户从未签到
|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
8 O. t- ^% b P ^ B
& z, _5 c4 l/ n8 z; Hmstcpip.h文件内容如下:
! U0 f( R3 d0 j. C9 l W# t
+ e- E& B& i' I/ G( J// Copyright (c) Microsoft Corporation. All rights reserved.
% m' M! ~% y* M3 s$ l) F#if _MSC_VER > 1000
, p) J# L# ]2 o: t( J#pragma once
2 @' d1 `: {& u" P# O4 m#endif& y- A! T% R+ i1 _9 E; N
! R5 u; D, Y4 t4 z5 l* ~0 o/* Argument structure for SIO_KEEPALIVE_VALS */8 o( U; I0 B# g
# X6 T8 j3 [1 G2 h d7 \
struct tcp_keepalive {% v* e/ }) [3 z. e/ u$ v# w9 t
u_long onoff;
5 j; r; o: \6 V2 U8 Y u_long keepalivetime;/ j' c/ p, J( b$ Y
u_long keepaliveinterval;
# g2 {, w" _) Y$ J; r4 a};
3 |2 P) D1 q! E, |2 \& j7 J
, z. r( i5 U7 n. G' R# Z6 ]// New WSAIoctl Options
! u4 L$ U2 J; Q$ r. H
2 x" d0 H% o& B9 a2 g# A0 r0 } g: D H#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)9 L# z S8 R' F: B: E+ m. T
#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
# G& z# \% c* w3 o0 r#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)1 L. h( P# S0 m+ u
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)0 A* X q! ~7 {. b/ g
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)
. M/ G6 ]- ^7 M; d$ \* A#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)2 r; O6 G6 @3 ]0 ~% O
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)
6 ]. n1 m, h' R4 _7 V3 j3 U" t#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
4 E$ E& Y8 J2 D# _+ p#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)2 [! h0 v y* A# X0 ]7 K3 h/ S
#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10); c- r* n8 l4 p/ ?; K* K& I' ?0 i
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)& B+ i0 {1 j" Y6 s2 j1 `
- x; D' I" X: b. s( Q, v5 l9 b// Values for use with SIO_RCVALL* options/ R& U7 e) c3 ^6 N: v! i( T
#define RCVALL_OFF 0
3 l- G, k4 S. f#define RCVALL_ON 1, { P$ o$ z0 n" P8 u3 U" {" s
#define RCVALL_SOCKETLEVELONLY 2: z0 q7 [# C* r& p
|
|