At Monday 8/5/2006 10:38, Michael Li wrote:

I have a python server with twisted framework running
24x7. I want to have a config file to setup accepting local
computer requests or remote computer requests.
If the config file exists, it only accepts local computer
request, does not accept requests from other computers.
If the config file does not exist, it accepts requests
from any computers.
Is there any easy way to do it ?

To see if the config file exists, use os.path.isfile(filename)
To enable only local connections to your server, see the Twisted documentation.



Gabriel Genellina
Softlab SRL

                
_________________________________________________________ Horóscopos, Salud y belleza, Chistes, Consejos de amor: el contenido más divertido para tu celular está en Yahoo! Móvil. Obtenelo en http://movil.yahoo.com.ar
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to