3
# Copyright (c) 2009 Twisted Matrix Laboratories.
4
# See LICENSE for details.
6
from twisted.spread import pb
7
from twisted.internet import reactor
9
from twisted.spread import pb
10
from twisted.internet import reactor
11
from twisted.cred import credentials
14
factory = pb.PBClientFactory()
15
reactor.connectTCP("localhost", 8800, factory)
16
def1 = factory.login(credentials.UsernamePassword("user2", "pass2"))
17
def1.addCallback(connected)
20
def connected(perspective):
21
print "got perspective2 ref:", perspective
22
print "asking it to foo(14)"
23
perspective.callRemote("foo", 14)