00001 00002 // Copyright (c) 2005, 2006 Yigong Liu 00003 // Permission to use, copy, modify, distribute and sell this software for any 00004 // purpose is hereby granted without fee, provided that the above copyright 00005 // notice appear in all copies and that both that copyright notice and this 00006 // permission notice appear in supporting documentation. 00007 // The author makes no representations about the 00008 // suitability of this software for any purpose. It is provided "as is" 00009 // without express or implied warranty. 00011 00012 #ifndef _TASK_MSG_H_ 00013 #define _TASK_MSG_H_ 00014 00015 struct Test_String_Msg { 00016 enum { MAX_STR_LEN = 1024 }; 00017 int len; 00018 char data[MAX_STR_LEN]; 00019 Test_String_Msg() { 00020 } 00021 }; 00022 00023 class Ping_Pong_Msg { 00024 public: 00025 enum { MAX_STR_LEN = 1024*1024 }; 00026 int len; 00027 char data[MAX_STR_LEN]; 00028 int count; 00029 Ping_Pong_Msg() { 00030 } 00031 }; 00032 00033 00034 #endif