|
6楼
楼主 |
发表于 2003-5-21 01:34:00
|
只看该作者
mstcpip.h 是微软Platform SDK 中的一个文件,可以到微软网站去下载Platform SDK 包! e& q" `' [: {* A/ i1 @
- S4 F6 g( w! _! f8 s: tmstcpip.h文件内容如下:5 M, V+ ^0 ^5 e
# a& M" w0 q: h+ v* F4 `2 n// Copyright (c) Microsoft Corporation. All rights reserved.4 T3 H8 U* k6 g" V$ s5 T, D2 H
#if _MSC_VER > 10009 K4 f, @0 X) y
#pragma once
4 E) x/ g# e6 h2 y. x#endif7 {/ O, E2 f" M" [# R
$ O% x% k2 Z" b5 Q7 ]8 I6 C/* Argument structure for SIO_KEEPALIVE_VALS */
, I; F3 h9 A; D; r0 X2 m
, [5 \6 H1 r/ t$ V) i. ]' wstruct tcp_keepalive {0 ]2 i+ w* Y& R6 g; P4 T" B6 S
u_long onoff;. i& r3 W6 `$ F! g/ A4 y! `% N% M
u_long keepalivetime;
; f4 _3 ~$ u. ]' g' N4 o u_long keepaliveinterval;
) |* M) A9 ?4 _3 D1 d};
) t' D# I" z/ ~) j1 B: O) G. B5 Z4 [! Z' i/ k
// New WSAIoctl Options
) m6 O" C% g8 N) ]& z
2 P) T v# k; }/ k; Q#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
+ ~+ ]5 k* l9 {2 h# k8 C#define SIO_RCVALL_MCAST _WSAIOW(IOC_VENDOR,2)
6 N: F) m+ Q% X: N: l#define SIO_RCVALL_IGMPMCAST _WSAIOW(IOC_VENDOR,3)
$ h4 }7 o8 L$ U, ~9 ^. |1 ~& T9 W; H2 C#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)5 S, {. g) M+ B5 d1 c' S
#define SIO_ABSORB_RTRALERT _WSAIOW(IOC_VENDOR,5)
) V6 c+ D, ^% M# {. O+ E4 R#define SIO_UCAST_IF _WSAIOW(IOC_VENDOR,6)
& e4 [ f% [5 F% c4 [#define SIO_LIMIT_BROADCASTS _WSAIOW(IOC_VENDOR,7)3 ?2 [5 E. {4 n* Y. D2 [. W
#define SIO_INDEX_BIND _WSAIOW(IOC_VENDOR,8)
/ r' X. h! b+ k#define SIO_INDEX_MCASTIF _WSAIOW(IOC_VENDOR,9) | j4 w- n% J6 F8 N5 L( B
#define SIO_INDEX_ADD_MCAST _WSAIOW(IOC_VENDOR,10)4 L7 F# {! u8 w, H9 x3 B5 h; Z
#define SIO_INDEX_DEL_MCAST _WSAIOW(IOC_VENDOR,11). ^+ [1 r! B5 S# G- Y' G
% L+ P5 b7 ~$ B) o// Values for use with SIO_RCVALL* options
2 v4 M6 o5 \: y#define RCVALL_OFF 0/ O% M) W. N$ e" H- e: y
#define RCVALL_ON 1% a W* z ]* `. w6 |
#define RCVALL_SOCKETLEVELONLY 29 s" H4 B: X+ }# _) d
|
|