[ create a new paste ] login | about

Link: http://codepad.org/B8O2Kh5B    [ raw code | fork ]

gmagno - Python, pasted on Sep 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

from PodSixNet.Connection import connection

def main():
    # connect to the server - optionally pass hostname and port like: ("mccormick.cx", 31425)
    connection.Connect("127.0.0.1", 9000)
    print "Successfully connected to '127.0.1:9000'"
    connection.Send({"action": "myaction", "blah": 123, "things": [3, 4, 3, 4, 7]})
    connection.Pump()
    print "Application returned."
    return

if __name__ == "__main__":
    main()


Create a new paste based on this one


Comments: