Stopping accepting connections

Paul D. DeRocco pderocco at ix.netcom.com
Thu Jan 2 12:55:47 EST 2014


> > 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 





More information about the use-livecode mailing list