Stopping accepting connections

Mark Schonewille m.schonewille at
Thu Jan 2 13:33:09 EST 2014


When you close the socket that is accepting connections, the newly created sockets will stay open. 

close socket 8080

will stop accepting connections.

Kind regards,

Mark Schonewille

Share the clipboard of your computer over a local network with Clipboard Link

Op 2 jan. 2014 om 18:55 heeft "Paul D. DeRocco" <pderocco at> het volgende geschreven:

>>> From: Paul D. DeRocco <pderocco at>
>>> What's the opposite of "accept connections"? That is, how do 
>>> I tell LC not
>>> to accept any more connections? I want to be able to place a 
>>> limit on the
>>> number of connections accepted, by counting them and disabling further
>>> connections when that number is reached.
>>> And how do I (the server) know when the other end has broken 
>>> a connection,
>>> if I'm not trying to send to the connection? Do I get some sort of
>>> message?
>> From: dunbarx at
>> Do you mean to "close" a socket?
> No. A socket is automatically created when an incoming connection is
> accepted. I want to prevent the socket from being created in the first
> place, just as though I had never called "accept connections". I could
> just close any additional sockets that are created, beyond my numeric
> limit, but that's not the same thing as refusing the connection.
> -- 
> Ciao,               Paul D. DeRocco
> Paul                mailto:pderocco at 
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list