Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- print 'Socket Test:'
- host = "localhost"
- port = 63333
- buffer = 1024
- addr = (host,port)
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- sock.connect((host,port))
- sock.send('{"method" : "authentication", "server_password" : "admin", "client_id" : "idpy1"}\r\n')
- print sock.recv(100)
- sock.send('{"method" : "get_sim_config"}\r\n')
- print sock.recv(100)
- sock.close()
Add Comment
Please, Sign In to add comment