Esempio n. 1
0
def echoclient():
    transport = gConnectTCP("localhost", 1027)
    transport.write("Heyo!")
    if transport.read() == "Heyo!":
        print "Echo server test succeeded!"
    else:
        print "Echo server test failed :-("
Esempio n. 2
0
def echoclient():
    transport = gConnectTCP("localhost", 1027)
    transport.write("Heyo!")
    if transport.read() == "Heyo!":
        print "Echo server test succeeded!"
    else:
        print "Echo server test failed :-("
Esempio n. 3
0
 def connect():
     transports.append(
         gConnectTCP("whatever", 9090, reactor=fakeReactor))
Esempio n. 4
0
 def connect():
     transports.append(
         gConnectTCP("whatever", 9090, reactor=fakeReactor))