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 login, you have to start 4d client with shift down 
to get the 4d login window and login as admin or designer. After what I don't 
know what 'Current user' returns in this context (I'd like to). 

-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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
> 
> 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?
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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
 


Regards Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com   Web : 
http://www.telekinetix.com 


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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?
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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

(in french, feel free to ask if translation is too bad)

-- 
Arnaud de Montard 




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**