Page 1 of 1

socketError

Posted: Tue Jan 02, 2007 1:26 pm
by chriss
i play around a liitle bit with the internet chatt sample to learn a bit about socket communication. is it possibel to get any massege in the client if the server (any server!!) does not reply or isnt any more online??

greetz to all

chriss

Posted: Wed Jan 03, 2007 3:12 am
by Mark
Hi Chriss,

You probably want to check out the socketClosed, socketError and socketTimeout messages. Note that the socketClosed message is sent if the server closes the socket. This allows you to give feedback when this message is received.

Best,

Mark

Posted: Wed Jan 03, 2007 5:14 pm
by chriss
THX mark.

I allready checked it and the on SocketClosed works perfect :-)

Greetz

Chriss

SocketError

Posted: Fri Feb 22, 2008 12:33 pm
by trevix
Trying to do some socket communication, I've got a SocketError 100061.

What is the meaning of this number ? Where can I find a list of the errorstring (as from documentation) and their meanings ?

I also noticed a different handling between OSX and Window:

On mac, if I have:

Code: Select all

open socket to App2IP with message "GotConn"

on GotCon
read from socket pSocket with message GotPacket
if the result is empty then--OK
else --we got error
--do someting else
end if
If the socket does not open, the script goes to SocketError and then does anyway the GotCon ("dosomething else").

On Window, if there is a socketError id does NOT goes to GotCon.

Anyone can explain this ?
Thanks