Un peu plus de doc pour le lancer
darcs-hash:20041203173757-d1718-c5169e9538a1dc1763a5d64d1912f7f83a3522fe.gz
This commit is contained in:
parent
25122e5002
commit
4e225747ce
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
|||
# Ce serveur est utilisé sur Nectaris par les bornes wifi pour faire
|
||||
# les requêtes ARP.
|
||||
|
||||
# Lancement : twistd -n -y arp.py --pidfile=/var/run/arp.pid
|
||||
# Pas de -n pour qu'il passe en fond
|
||||
|
||||
# On utilise twisted
|
||||
# http://twistedmatrix.com/documents/current/howto/tutorial/intro
|
||||
from twisted.internet import protocol, reactor, defer, utils
|
||||
|
@ -89,5 +92,6 @@ class ARPFactory(protocol.ServerFactory):
|
|||
# sous-réseau wifi
|
||||
application = service.Application('arp')
|
||||
factory = ARPFactory('138.231.148.0/22')
|
||||
# Remplacer SSL par TCP pour ne pas utiliser SSL et virer ServerContextFactory
|
||||
internet.SSLServer(5243, factory,
|
||||
ServerContextFactory()).setServiceParent(service.IServiceCollection(application))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue