Relying heavily on the MemoPad code examples, I've come up with a routine
that should in theory beam an object from my DB to my app running on another
Palm and correspondingly receive it.
Unfortunately, if I use the emulator in loopback mode, it doesn't quite
happen (nor does the real device work). If I trace through the sending
routine, I get what looks like a relatively correct ExgSocketType variable,
initialized with memset, then with the target, length, count, name,
description fields filled in appropriately. It seems to execute an ExgPut
and then subsequent ExgSends ok.
However, on the receving side of things, if I do this:
ExgSocketType est;
MemSet (&est, sizeof(ExgSocketType), 0);
err = ExgAccept (&est);
I end up with err = 0, but in est, the only field set is 'libraryRef' (it's
set to 2). And that's it...if I try to foribly ExgReceive, I always read 0
bytes. If I ExgDisconnect w/o an error, it prompts me to accept again! but
subsequently continues this behavior.
What's going on here?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/