~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/mail/tutorial/smtpserver/smtpserver-2.tac

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from twisted.application import service
 
2
 
 
3
application = service.Application("SMTP Server Tutorial")
 
4
 
 
5
from twisted.application import internet
 
6
from twisted.internet import protocol
 
7
 
 
8
smtpServerFactory = protocol.ServerFactory()
 
9
smtpServerService = internet.TCPServer(2025, smtpServerFactory)
 
10
smtpServerService.setServiceParent(application)