At 10:52 AM +0200 9/12/00, Bjarne Nyquist wrote:
>Hey Terry!!
>
>Thanx for the input. I did about all of it but I dint understand the:
>
>> gClientConnection.setNetBufferLimits(1024 * 4, 1024 * 4, 5)
You might want to leave the setNetBufferLimits at their default values
(16384, 16384, 30) or increase them - I was just trying to show the
required sequence. You have to set your buffers before making a connection
to a server.
>
>Is this needed if I only send data to update the DB (one single list) and
>commands to the server?
You need to make sure that the buffer is large enough to handle the largest
single message that you are going to send or receive. If you're sending
large text or list structures or binary member media, you may need to
increase the values to higher than the defaults.
>
>Also
>I cant find any way to check if there is a liveconnection to the server,
>or if there has been a diconnetion because of some net error or similar
>problem.
If you set a variable (a global for example), you can keep track.
global gConnectedToServer
on loginToHost me, newMessage
if newMessage.error = 0 then gConnectedToServer = TRUE
end loginToHost
You can filter for unexpected disconnects by looking for messages with the
subject "ConnectionProblem" so you can set the global to FALSE when
appropriate.
Regards,
Terry
--
...---===| Terry R. Schussler |===---...
...---===| DIA Chief Investigator |===---...
on visitWebsite yourSelection
coolSites = [ \
#greatSeminars : "http://www.macromediaSEMINARS.com/", \
#directorIntelligenceAgency: "http://www.director8.com", \
#freeBehaviors : "http://www.behaviors.com/"]
gotoNetPage coolSites[yourSelection]
end visitWebsite
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]