3
# Copyright (c) 2009 Twisted Matrix Laboratories.
4
# See LICENSE for details.
6
from twisted.spread import pb
7
from twisted.internet import reactor
8
from twisted.cred import credentials
11
factory = pb.PBClientFactory()
12
reactor.connectTCP("localhost", 8800, factory)
13
def1 = factory.login(credentials.UsernamePassword("user1", "pass1"))
14
def1.addCallback(connected)
17
def connected(perspective):
18
print "got perspective1 ref:", perspective
19
print "asking it to foo(13)"
20
perspective.callRemote("foo", 13)