socketClosed |
Type | message |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | socketClosed <pSocketID>
|
Associations | stack, card, field, button, graphic, scrollbar, player, image |
Summary | Sent when the remote system closes a socket.
|
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Parameters | Name | Type | Description |
---|
pSocketID | | The identifier (set when you opened the socket) of the socket that's
just been closed. The socket identifier starts with the IP address of
the host the socket is connected to, and may optionally include a port
number (separated from the IP address by a colon). If there is more than
one socket connected to that host and port, you can specify which socket
by appending the connection name or number that was assigned when the
socket was opened, separated from the port number by a vertical bar (|).
|
|
Example | on socketClosed theID
set the itemDelimiter to "|"
if there is a window (last item of theID)
then close stack (last item of theID)
end socketClosed
|
Related | Glossary: object, message, socket
Message: socketTimeout
|
Description | Handle the socketClosed message to perform cleanup after the remote
system closes a socket.
The socketClosed message is sent to the object that
opened the socket.
If the socket closed due to an error, the socketError message is sent
instead of socketClosed.
|
Tags | networking |