Change in snmpNextAsync.cpp (WIN32).

Alexander Gutkin sasha____rhetoricalsystems.com
Tue Jan 7 21:13:35 CET 2003


    Hi,                                                                                                                                                           
                                                                                                                                                                  
        Following is a change a had to make in order to compile                                                                                                   
snmpNextAsync.cpp on WIN32 with Visual C++ 6.0:                                                                                                                   
                                                                                                                                                                  
*** ../../src/snmp++/consoleExamples/snmpNextAsync.cpp  Mon Jan  6                                                                                                
13:26:32 2003                                                                                                                                                     
--- snmpNextAsync.cpp   Tue Jan  7 20:02:17 2003                                                                                                                  
***************                                                                                                                                                   
*** 386,391 ****                                                                                                                                                  
--- 386,395 ----                                                                                                                                                  
     for (int t=1; t<=10;t++)                                                                                                                                     
     {                                                                                                                                                            
       SNMPProcessPendingEvents();                                                                                                                                
+ #ifndef WIN32                                                                                                                                                   
       sleep(1);                                                                                                                                                  
+ #else                                                                                                                                                           
+      Sleep(1000);                                                                                                                                               
+ #endif // WIN32                                                                                                                                                 
     }                                                                                                                                                            
  }  // end get                                                                                                                                                   
                                                                                                                                                                  
                                                                                                                                                                  
                                Regards,                                                                                                                          
                                        Alexander                                                                                                                 
 




More information about the AGENTPP mailing list