This is on a Unix platform using a gcc compiler.
Forgetting about the send option for the present, I have the typically:-
Expand|Select|Wrap|Line Numbers
- // The client program for the application.
- #include "initComms.h"
- int main (int argc, char **argv)
- {
- // This is the main driver program for the Client.
- static DataStruct dData;
- InitComms();
- printf("******** Into Client Main Loop ********\n");
- while(true)
- {
- ACE_TRY
- dData = getData();
- usleep(2000);
- }
- return 0;
- }
Many thanks,
Andy.