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 
00039 #include <stdio.h>
00040 #include "tsp_provider_init.h"
00041 #include "tsp_sys_headers.h"
00042  
00043 int TSP_launcher () 
00044 {
00045 int argc = 1 ;
00046 char **argv;
00047 char *tableau[] ={"TSP_launcher"} ;
00048         argv=tableau ;
00049   printf ("#===================================================================#\n");
00050   printf ("# Launching <StubbedServer> for generation of 1000 Symbols at 100Hz    #\n");
00051   printf ("#===================================================================#\n");
00052   /* Init server */
00053   if(TSP_provider_init(&argc, &argv))
00054     {
00055       TSP_provider_run(FALSE );
00056     }
00057 return (int)0 ;
00058 }
00059    
00060 void smallTester (int *arg) ;
00061 void smallTester (int *arg) 
00062 {
00063 logMsg ("My id is : %0X arg = %0X\n",pthread_self(),*arg,0,0,0,0) ;
00064 
00065 }
00066 
00067 void miniLaunch (void) ;
00068 void miniLaunch () 
00069 {
00070 pthread_t newThread ;
00071 int err ;
00072 int toto =taskIdSelf();
00073 logMsg ("My id is : %0X\n",toto,0,0,0,0,0) ;
00074 err = pthread_create (&newThread,NULL,(void *)smallTester,&toto) ;
00075 logMsg ("My son is %0X\n",newThread,0,0,0,0,0) ;
00076 
00077 }
Framework Home Page.

Beware !! TSP wave is coming...