I'm sorry but this was a simple Echo like appl using STREAM
SOCKETS(TCP)..but even this wasn't working on the Tungsten C

gaurav






Click on the image to chat with me Powered by IMaround Patent pending
presence and IM technology from Geodesic http://www.geodesiconline.com
----- Original Message ----- 
From: "Annada Prasana" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 12:22 PM
Subject: RE: for Annada Prasana


> Hy Gaurav Mengi,
> AppNetTimeout?
> for NetLibSocketBind it should be -1.
> For UDP socket no need of NetLibSocketListen & NetLibSocketAccept.
> NetLibReceive is okey.
> Thankx
> Annada
>
> -----Original Message-----
> From: Gaurav Mengi [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 12:04 PM
> To: Palm Developer Forum
> Subject: Re: for Annada Prasana
>
>
>
>
>
>
> 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.
> /********************************************/
>
>
>     bzero(&servAddrP,sizeof(servAddrP));
>     servAddrP.family = netSocketAddrINET;
>     servAddrP.port = NetHToNS(6060);//its a port where i try to bbind the
> server
>
>     servAddrP.addr =NetHToNL (netIPAddrLocal);default IP
>
>     result = NetLibSocketBind(AppNetRefnum,servfd,(NetSocketAddrType
> *)&servAddrP,
>          sizeof(servAddrP), AppNetTimeout,&err);
>
>     if(!result)
>      {
>
>
>       FrmAlert(BindAlert);//Success
>
>       result = 0;
>       result = NetLibSocketListen(AppNetRefnum , servfd, 1 , -1, &err);
>
>       if(result != 0)
>       {
>        FrmAlert(FailureAlert);//Failure
>
>       }
>
>
>
>       ClientLen = sizeof(clientAddrP);
>       result = 0;
>       clientfd = NetLibSocketAccept (AppNetRefnum,
servfd,(NetSocketAddrType
> *)&clientAddrP , &ClientLen , -1,&err);
>
>
>       if(err == 0)
>        {
>
>         FrmAlert(BindAlert);//Success
>        }
>
>       else
>        {
>         FrmAlert(FailureAlert);//Failure
>        }
>
>        NetLibSocketClose (AppNetRefnum,servfd, AppNetTimeout,&err);
>
>
>
>      }
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Click on the image to chat with me Powered by IMaround Patent pending
> presence and IM technology from Geodesic http://www.geodesiconline.com
> ----- Original Message ----- 
> From: "Annada Prasana" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 11:51 AM
> Subject: RE: for Annada Prasana
>
>
> > Hy,Gaurav Mengi
> >   Can you test it for simulator first?Bcoz for device may be some
problem
> of
> > GPRS data communication.And in code first make the from address field to
> > NULL,wheather it is working fine?
> > Thankx
> > Annada
> >
> > -----Original Message-----
> > From: Gaurav Mengi [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 11:43 AM
> > To: Palm Developer Forum
> > Subject: for Annada Prasana
> >
> >
> > Hi Annada,
> >                 I've seem ur previous postings about receving packets on
> the
> > device from the PC when u r using UDP packets..Even I'm facing the same
> > problem n frequently making postings but no reply....can u plzz help me
> with
> > that if u know the solution...
> >
> > I'll highlight upon my issues:
> > 1)On treo 270 if i use the Stream sockets I can communicate easily
between
> > the device and the PC....
> > but if i use UDP ..I can only send data from the device to the PC but
> cannot
> > receive Data on the device.
> >
> > 2)On tungsten C  ..i can never receive data from the PC to the device
but
> > can only send the data.
> >
> > I even tried with NOn-Blocking Sockets and even made the AppNetTimeout
to
> > forever..but nothing works.
> >
> >
> >
> > -- 
> > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palmos.com/dev/support/forums/
> >
> > -- 
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
> >
> >
>
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



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

Reply via email to