Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added example tac file

  • Loading branch information...
commit 4bd01655319763b4086dccfc19ebe7ab16d61c47 1 parent 8dd7b1f
@ssutch ssutch authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 example_tac.tac
View
12 example_tac.tac
@@ -0,0 +1,12 @@
+import twisted.application, twisted.web
+import pyapns.server
+
+application = twisted.application.service.Application("pyapns application")
+
+resource = twisted.web.resource.Resource()
+resource.putChild('', pyapns.server.APNSServer())
+site = twisted.web.server.Site(resource)
+
+server = twisted.application.internet.TCPServer(7077, site)
+server.setServiceParent(application)
+
Please sign in to comment.
Something went wrong with that request. Please try again.