Why does the system always reported , did not define it ?

Category: VC/MFC -> Foundation Classes Author: xie28184101wei Date: 2005-07-08 11:35:40
 
xie28184101wei
2005-07-08 11:35:40
I use this function
WSAIoctl     second parameter of the function I use the   SIO_RCVALL  

but the system always reported , I have not defined
the   # include   < Winsock2.h >  

-
ying329800090err
2005-07-08 11:53:42
have a mstcpip.h MSSDK in this document , SIO_RCVALL is defined on the inside .
//     Copyright   (C)   Microsoft   Corporation,   1996-1999
# if   _MSC_VER   >   1000
# pragma   once
# endif

/ *   Argument   structure   for   SIO_KEEPALIVE_VALS   * /

struct   tcp_keepalive   {
        u_long     onoff;
        u_long     keepalivetime;
        u_long     keepaliveinterval;
};

//   New   WSAIoctl   Options

# define   SIO_RCVALL                         _WSAIOW (IOC_VENDOR, 1)
# define   SIO_RCVALL_MCAST             _WSAIOW (IOC_VENDOR, 2)
# define   SIO_RCVALL_IGMPMCAST     _WSAIOW (IOC_VENDOR, 3)
# define   SIO_KEEPALIVE_VALS         _WSAIOW (IOC_VENDOR, 4)
# define   SIO_ABSORB_RTRALERT       _WSAIOW (IOC_VENDOR, 5)
# define   SIO_UCAST_IF                     _WSAIOW (IOC_VENDOR, 6)
# define   SIO_LIMIT_BROADCASTS     _WSAIOW (IOC_VENDOR, 7)
# define   SIO_INDEX_BIND                 _WSAIOW (IOC_VENDOR, 8)
# define   SIO_INDEX_MCASTIF           _WSAIOW (IOC_VENDOR, 9)
# define   SIO_INDEX_ADD_MCAST       _WSAIOW (IOC_VENDOR, 10)
# define   SIO_INDEX_DEL_MCAST       _WSAIOW (IOC_VENDOR, 11)
llxxk
2005-07-08 12:09:26
Add
# in the stdafx.h include   < afxsock.h >
zgshgy
2005-07-08 12:22:56
agree howtotell (touch)
book_Wans2003
2005-07-08 12:29:27
Well, although it can not help you, but help you look UP
UP
bestcontroller
2005-07-08 12:37:26
!! Requires   Windows   Sockets   1.1  
Use  . Ws2_32.lib
right543913274
2005-07-08 12:42:35
is not a library file version is too old , under
you can open the source file in the latest sdk, personally Find it, if you really do not have that version is not enough