blob: 8834f9d76edbd5f97858cb7e388eb077e5dc88f6 [file] [log] [blame]
Steve McIntyreb1cbad32014-12-12 21:40:25 +00001import socket
2import time
3import json
4from ipc import VlanIpc
5
6host = 'localhost' # The remote host
7port = 3080 # The same port as used by the server
8
9s = VlanIpc()
10s.client_connect(host, port)
11msg = {"group": "group1", "client_name": "client1", "request": "lava_sync", "message": "bye bye world"}
12print "Sending to server:"
13print msg
14s.client_send(msg)
15ret = s.client_recv_and_close()
16print "Server said in reply: "
17print ret
18