Stopping accepting connections

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Jan 2 13:33:09 EST 2014


Paul,

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
Economy-x-Talk
Http://economy-x-talk.com

Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com


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

>>> From: Paul D. DeRocco <pderocco at ix.netcom.com>
>>> 
>>> 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 aol.com
>> 
>> 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 ix.netcom.com 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list