I work out an simple exchange application for communication.
it perform nicely in loop back mode.
but when i try this application by two plam device.
it also shown out  "data received in unknown format"

can anyne help?


  case sysAppLaunchCmdSystemReset:
  case sysAppLaunchCmdSyncNotify:
   ExgRegisterData(appFileCreator, exgRegTypeID
,"application/x-beam-counter");
   break;

  case sysAppLaunchCmdExgReceiveData:
  {
   ExgSocketPtr socketPtr;
   Char buffer[10]="";
   UInt32 bytesRxd=0;
   UInt32 cnt=0;
   Err err;

   socketPtr = (ExgSocketPtr) cmdPBP;

   if (!ExgAccept(socketPtr))
   {
    do
    {
     bytesRxd = ExgReceive(socketPtr, buffer, sizeof(buffer), &err);

     if (bytesRxd)
     {
      cnt = (UInt32)StrAToI (buffer);
     }
    } while (bytesRxd && !err);
   }

   ExgDisconnect (socketPtr , err);
   FtrSet(appFileCreator, 1, cnt+1);
   FrmCustomAlert (CounterAlert, buffer,"","");

   break;



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to