Re: Programmatic control of accept/reject new connections

2017-09-27 Thread Arnaud de Montard via 4D_Tech
> Le 27 sept. 2017 à 17:07, Douglas Cryer via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > Hi there, > > I thought this could be done with the “On Server Open Connection” Method.[...] As I suppose this is for maintenance purpose, if you use a default user (no password) to manage your own

Re: Programmatic control of accept/reject new connections

2017-09-27 Thread Jeffrey Kain via 4D_Tech
Ah, right... that makes sense... we could add a little admin control to manage this. Thanks! -- Jeffrey Kain jeffrey.k...@gmail.com > On Sep 27, 2017, at 10:58 AM, Spencer Hinsdale > wrote: > > wouldn’t you just > $0:=123 > > in On Server Open Connection DB Method

Re: Programmatic control of accept/reject new connections

2017-09-27 Thread Douglas Cryer via 4D_Tech
Hi there, I thought this could be done with the “On Server Open Connection” Method. Not used it in a long time but if it returns false your client will be refused connection. http://doc.4d.com/4Dv15/4D/15.4/On-Server-Open-Connection-Database-Method.301-3286437.en.html

Re: Programmatic control of accept/reject new connections

2017-09-27 Thread Spencer Hinsdale via 4D_Tech
wouldn’t you just $0:=123 in On Server Open Connection DB Method Spencer > On Sep 27, 2017, at 7:38 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Can this be done in code? Or is there a way to default it to rejecting > connections when you start the server? >

RE: Programmatic control of accept/reject new connections

2017-09-27 Thread Dennis, Neil via 4D_Tech
I don't know of a way to do this in code, but you can always unplug the network cable :) If there was a way to do it in code it would probably be via the Set Database parameter, but I don't see it there. Neil -- Privacy Disclaimer: This message contains confidential information and is

Re: Programmatic control of accept/reject new connections

2017-09-27 Thread Arnaud de Montard via 4D_Tech
> Le 27 sept. 2017 à 16:38, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > Can this be done in code? Or is there a way to default it to rejecting > connections when you start the server? Not 100% by code, but through a text file near the server. I took the idea from Vincent

Programmatic control of accept/reject new connections

2017-09-27 Thread Jeffrey Kain via 4D_Tech
Can this be done in code? Or is there a way to default it to rejecting connections when you start the server? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html