Socket communication
Richard Gaskin
ambassador at fourthworld.com
Tue Nov 22 16:52:17 EST 2016
Ralph DiMola wrote:
> When one enables socket communication on the server side using
> the form "accept [datagram] connections on port portNumber with
> message callbackMessage", how do you stop accepting new connections?
> The LC lesson show closing all open sockets but not how to prevent
> new connections.
After running "accept", check the openSockets. You should see one which
has no IP address, and is just the port number you're listening on, e.g.:
accept connections on port 4444 with message "foo"
put the openSockets
..should yield:
4444
If you then close that you should be unable to receive further connections:
close socket 4444
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list