I’m having trouble accessing attributes from the python socket module. I can bind to an address and send and receive messages but can’t set blocking or set socket options. For instance:
ip = '127.0.0.1' port=23072 buffer = 1024 import socket addr = (ip,port) Sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) Sock.bind(addr) test=0 while test==0: print 'Listening on port %d....'%(port) Sock.setblocking(0) #data,addr = Sock.recvfrom(buffer) test = 1
This works in newer versions of Jython and Python, but get an attribute error on Sock.setblocking() in Ignition. The same thing happend with other attributes I’ve tried. Ideas?