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
socketError
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
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
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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
SocketError
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:
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
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
On Window, if there is a socketError id does NOT goes to GotCon.
Anyone can explain this ?
Thanks