Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from twisted.internet import defer
- from factories import JocksClientFactory
- def get_jocks_api(host, port, function, args):
- 'the api in charge to provide the interface to download jocks from a jocks server'
- d = defer.Deferred()
- from twisted.internet import reactor
- factory = JocksClientFactory(function, args, d)
- reactor.connectTCP(host, port, factory)
- return d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement