1
# Copyright (c) 2009 Twisted Matrix Laboratories.
2
# See LICENSE for details.
5
Test app for PostfixTCPMapServer.
7
Call with parameters KEY1=VAL1 KEY2=VAL2 ...
12
from twisted.internet import reactor
13
from twisted.protocols import postfix
14
from twisted.python import log
16
log.startLogging(sys.stdout)
19
for arg in sys.argv[1:]:
21
k,v = arg.split('=', 1)
27
f = postfix.PostfixTCPMapDictServerFactory(d)
28
port = reactor.listenTCP(4242, f, interface='127.0.0.1')
b'\\ No newline at end of file'