The following examples shows how a client connects to Spectra running in the asynchronous server mode on a remote host.
#!/usr/bin/env python
import socket
hostname = 'hasXX'
portNo = 7777
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((hostname, portNo))
s.send('*=2*3')
data = s.recv(1024)
s.close()
print( 'Received', repr(data))