#include <iostream>

#include "SysVMsgSendThread.h"

using namespace std;

int main(int /*argc*/, char /* *argv[]*/)
{
  CSysVMsgSendThread * pCMsgSendThread=new CSysVMsgSendThread("/tmp/IPC2Display");
  cout << "pCMsgSendThread=" << pCMsgSendThread << endl;

  cout << "send number 0 to exit !" << endl << endl;
  int i;
  while(true) {
    cout << "enter number to send :" << endl;
    cin >> i;
    if(!i) break;
    pCMsgSendThread->Send(i);
  }

printf("now delete pCMsgSendThread ...\n");
  delete pCMsgSendThread;
printf("... delete finished \n");

  return 0;
}
