Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

main.C

Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <iostream>
00003 #include <stdlib.h>
00004 #include <unistd.h>
00005 #include <sys/time.h>
00006 #include <signal.h>
00007 #include <sched.h>
00008 #include <time.h>
00009 #include "Connector.h"
00013 int main(int argc, char *argv[]){
00014 
00015         Connector * c;
00016         if (argc > 1) {
00017                 c = new Connector(atoi(argv[1]));
00018         } else {
00019                  c = new Connector();   
00020         }
00021 
00022         try {
00023                 while (!c->done()) {
00024                         c->process();
00025                 }
00026         } catch (string * err) {
00027                 cout << *err << "\n";
00028         } catch (char * err) {
00029                 cout << err << "\n";
00030         }
00031         delete c;
00032         printf("DONE\n");
00033         //mainTest();
00034         return 0;
00035 }

Generated on Tue Dec 17 21:14:13 2002 for AUSS_Connector by doxygen1.2.18