TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

server_main.c

Go to the documentation of this file.
00001 #
00038 #include <stdlib.h>
00039 #include <strings.h>
00040 
00041 #include "tsp_provider_init.h"
00042 
00043 extern void GLU_loop(void);
00044 
00045 int main(int argc, char *argv[])
00046 {
00047   char **my_argv;
00048   int i,my_argc;
00049 
00050   printf ("#========================================================================#\n");
00051   printf ("# Launching <res reader server> for generation of Symbols from .res file #\n");
00052   printf ("#========================================================================#\n");
00053 
00054   my_argc= argc+2;
00055   my_argv= (char**)calloc(my_argc, sizeof(char*));
00056   my_argv[0] = argv[0];
00057   my_argv[1] = "--tsp-stream-init-start";
00058 
00059   for (i=1; i<argc; i++)
00060     {
00061       my_argv[i+1]=argv[i];
00062     }
00063   my_argv[my_argc-1] = "--tsp-stream-init-stop";
00064 
00065   if (TSP_provider_init(&my_argc, &my_argv))
00066     {
00067       TSP_provider_run(FALSE);
00068       GLU_loop();
00069      }
00070 
00071   return 0;
00072 }
00073 
00074    
Framework Home Page.

Beware !! TSP wave is coming...