00001 #ifndef __J2K__MsgThreadServer_HPP__
00002 #define __J2K__MsgThreadServer_HPP__
00003
00004 #include <j2k/Fred/Standard.hpp>
00005 #include <j2k/nto/Basic_PThread.hpp>
00006 #include <j2k/nto/Message.hpp>
00007
00008
00009 #include <stdio.h>
00010 #include <errno.h>
00011 #include <stdlib.h>
00012 #include <sys/dispatch.h>
00013
00014 class MsgThreadServer : public Basic_PThread
00015 {
00016 private:
00017 char* name;
00018 size_t name_len;
00019 Message m;
00020 name_attach_t *attach;
00021
00022 public:
00023 MsgThreadServer( const char* name0 = "MsgThreadServerSample" );
00024 Message receive( int who );
00025 virtual ~MsgThreadServer();
00026 void send( const char* dest0, Message msg );
00027
00028 };
00029
00030 #endif