Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. from twisted.internet import defer
  2. from factories import JocksClientFactory
  3.  
  4. def get_jocks_api(host, port, function, args):
  5. 'the api in charge to provide the interface to download jocks from a jocks server'
  6. d = defer.Deferred()
  7. from twisted.internet import reactor
  8. factory = JocksClientFactory(function, args, d)
  9. reactor.connectTCP(host, port, factory)
  10. return d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement