Alaska Software Inc. - WebServer Implementation Problem
Username: Password:
AuthorTopic: WebServer Implementation Problem
WebServer Implementation Problem
on Sat, 11 May 2002 06:02:18 +0200
Hi All,
I've tried to develop a Web Server with ASINet. All works fine on a LAN, but
if use this software through Internet nothing works.
Anyone can help me?

Regards
Lorenzo




WebServ.zip
Hubert Brandel Re: WebServer Implementation Problem
on Fri, 17 May 2002 23:19:49 +0100
Hi,

I don't know if my problem is the same as yours, but I used the litle
server client example. It works on LAN, but over the Internet the Server
dies on Win2000. 

The reason was 

nBytes := SocketRecv( ::nSocket, @cBuffer, nBytes ,@nError )

In LAN the return value nBytes was egual with the wanted messagelenght
nBytes (parameter). The Internet needs 2 or 3 turns to get all data. So
you have to loop until all Bytes are here. Don't ask for more then the
other sends, it hangs up the server.

Maybe it helps.

Bye the way, do you know how to get a HTML Page into Xbase++ ?
I have to read a Site with UserID and Password querry ...
Is this possible with pure ASINET or do I need more ?

Bye
Hubert