|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包
- J) V/ s3 D. |! ]! P) C3 i1 D7 b6 P3 i1 a8 t3 u
mstcpip.h文件内容如下:* l: l1 s5 B' g% b: H
' E9 M$ a4 k+ P! S, L/ `// Copyright (c) Microsoft Corporation. All rights reserved.' S9 Z1 ? l- E$ ^; }
#if _MSC_VER > 1000
( c; O' ? h' b# P5 l% E#pragma once+ ]1 z& H& H( O% ^6 M4 m- F
#endif
; V/ [$ R2 m/ h+ s
~, L2 t, v' W/* Argument structure for SIO_KEEPALIVE_VALS */
" Z4 u$ \/ V0 f1 v* G! k9 e, e) g2 ?, { H! D6 e
struct tcp_keepalive {) ~. Q. e) r6 _. U; K3 P V% f f
u_long onoff;
1 m9 @7 L* a3 y; [! t5 Z u_long keepalivetime;
3 g* b4 n# y; O( P3 g2 K5 H+ s u_long keepaliveinterval;
! u+ e6 a+ X8 s1 ]};/ v- ]7 C$ H- p: {
. w0 Y$ Y; e- _, Y+ C% j
// New WSAIoctl Options
- p- U3 Y) y3 J8 F9 ^3 Y& V& q& r5 z; k4 L1 N+ T
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
' a8 [+ b, k/ _& e#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
: A; I% R% Y% n' {#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)7 W! _3 Z3 E" ~, |: E$ Q
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)2 l& O1 i. q, h- U, y, s/ J+ p+ ]
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)7 n0 |2 q2 s! F, M4 v; X
#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)7 S6 T3 ?8 u( {8 ], v& f( _; Q
#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)
1 `5 W+ g4 g6 J6 I$ l#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
0 @0 {! a) B& C' m. e) j#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9)6 O. A5 c9 [6 u* C! B
#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)
; S& R6 t+ V6 Q [0 V#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11)9 K6 Z0 @0 V8 V
$ k4 l& _8 s3 L, ?4 r0 v+ j
// Values for use with SIO_RCVALL* options, y, q6 `9 [4 P7 U- D
#define RCVALL_OFF 09 P( l1 S( C! t* U
#define RCVALL_ON 1
7 h: ?9 N* ~$ o* u% X) G0 b#define RCVALL_SOCKETLEVELONLY 2 J+ u! ~, S% o/ y/ g' V7 D
|
|