home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / pascal / ipxlib / ipxtest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-01  |  2.0 KB  |  44 lines

  1. // IPXTEST.C -- Main source file for IPXTEST
  2. // by Allen Brunson  06/01/94
  3.  
  4.  
  5. #include "ipxtest.h"         // IPXtest-specific defines
  6. #include "ipxcfg.h"          // IPXLIB configuration defines
  7.  
  8.  
  9. /****************************************************************************/
  10. /*                                                                          */
  11. /***  Global data                                                         ***/
  12. /*                                                                          */
  13. /****************************************************************************/
  14.  
  15. byte endProgram = FALSE;                           // End program flag
  16. char str[100];                                     // Scratch string
  17.  
  18.  
  19. /****************************************************************************/
  20. /*                                                                          */
  21. /***  main()                                                              ***/
  22. /*                                                                          */
  23. /****************************************************************************
  24.  
  25. This is the program's main procedure.                                       */
  26.  
  27. byte main(void)                                    // Begin main()
  28.   {
  29.     demoStart();                                   // Start up subsystems
  30.  
  31.     while (!endProgram)                            // Main program loop
  32.       {
  33.         getKeys();                                 // Get input keys
  34.         cmdProcess();                              // Process commands
  35.         while (ipxRecvChk()) recvPacket();         // Process packets
  36.         sendFlurry();                              // Send flurry packets
  37.         sendErr();                                 // Check for send errors
  38.       }
  39.  
  40.     demoStop();                                    // Stop subsystems
  41.  
  42.     return FALSE;                                  // Return errorlevel 0
  43.   }                                                // End main()
  44.