Gregor,
    I dont have an answer to your problem, instead i have the same problem. 
I am able to receive the url data on the simulator fine.  i can view the 
database i put the data in and its all there.  but when i load it onto the 
device, treo 650 in this case, it has random output.  Sometimes it soft 
resets, most the time it just hangs up on the netlib code.  I have been 
trying to figure it out, and i beleive it might have to do with the network 
interface settings on the device. ill let you know if i make any progress on 
the situation.

-- 


Scott Erickson
Software Development Team, FB-4, Inc.
[EMAIL PROTECTED]
"Gregor Buergisser" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> As I had no reply to my previous post, I'll try again with more details 
> included.
>
> I am working on a application that uses the Net Library to retrieve a html 
> page from a webserver.
> The application calls the appropriate functions to load the Net Library 
> and set up the connection.
> Then it sends a http GET request attempt to retrieve the reply from the 
> server using NetLibReveice.
>
> In POSE and also the Simulator the application works fine (NetLib calls 
> redirected to host TCP/IP, all error checking enabled). It reads the 
> requestet html page.
>
> Now the problem is: When I run the application on my real Tungsten T 
> device, connection to the Internet is established, request is sent but 
> nothing is received through NetLibReceive. The funktion always returns 
> with 0 and no error.
> I can tell this so exactly because I debugged the app using the TungstenT 
> Nub and the PalmOS Debugger included in the PODS.
>
> Here some pseudocode of my appp, so that you get an idea of the program 
> flow:
>
> SysLibFind ("Net.lib", &NetRefnum);
> NetLibOpen (NetRefnum, &netErr);
> NetSocket = NetLibSocketOpen (
>   NetRefnum, netSocketAddrINET, netSocketTypeStream,
>   netSocketProtoIPTCP, NetTimeout, &err
> );
> NetLibGetHostByName (NetRefnum, host, &infoBuf, NetTimeout, &err);
> MemSet (&sockAddrIN, sockAddrINLen, 0);        sockAddrIN.family = 
> pInfo->addrType;
> sockAddrIN.port = NetHToNS (port);
> sockAddrIN.addr = NetHToNS (infoBuf.address [0]);
> NetLibSocketConnect (
>   NetRefnum, NetSocket, (NetSocketAddrType *) &sockAddrIN,
>   sockAddrINLen, NetTimeout, &err
> );
> NetLibSend (
>   NetRefnum, NetSocket, httpreq, StrLen (httpreq), 0, &sockAddrIN,
>   sockAddrINLen, NetTimeout, &err
> );
> NetLibSelect(
>   NetRefnum, width + 1, &readFDs, &writeFDs, &exceptFDs,
>   NetTimeout, &err
> );
> NetLibReceive(
>   NetRefnum, NetSocket, buf, 1, 0, NULL, 0, NetTimeout, &err
> );
>
> The NetLibSend is placed in a while loop, to make sure all bytes are being 
> sent.
> NetLibSelect is called to make sure there is something here to read before 
> calling NetLibReceive.
>
> Can anyone give me a hint what point I could be missing?
> Any help is appreciated.
>
> Best regards, Gregor
>
> 



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

Reply via email to