On Friday 02 July 2004 02:33 am, Gaurav Mengi wrote:
> Hi Annada,
> I've tested the application and it runs successfully if I try to
> communicate between ::
> 1)Two palm Simulators
> 2)between simulator running on windows mchine and another application
> running on linux machine..
>
> But when i try to run on the device..ie I'm only able to send the data
> from the device but cannot receive the data.
>
> I'm sending u a code which works fine on TReo 270 where I'm using a dial
> up but not Tungsten C where i'm using wi-fi.
I have it in my notes that I did this:
MemSet((char *) &saddr, sizeof(saddr), 0);
NetLibSocketBind(refnum, sock, (NetSocketAddrType *) &saddr,
sizeof(saddr), timeout, &errno);
Which will fail in the emulator, but was required to get PalmOS on the
device to assign a non-zero (unreachable) source port.
--
/* Chris Faherty <[EMAIL PROTECTED]> */
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/