[python-win32] how to only accept local computer requests
Gabriel Genellina
gagsl-p32 at yahoo.com.ar
Mon May 8 22:36:11 CEST 2006
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
More information about the Python-win32
mailing list