Socket problem
Hi,
I am trying to get sockets working between my Python code and Java. With regular Python files, my test code works, and it works in Breve for sending data to Java.
However, my problem comes when trying to listen for incoming data from within Python code running through Breve. The bind() function works, but recv() just hangs Breve completely. It isn't just stuck waiting for data, it just hangs and I have to kill it.
I tried setblocking(0) but then recv() gives this error:
socket.error: (11, 'Resource temporarily unavailable')
(Though, on the bright side, Breve doesn't hang).
Has anyone done this previously? Any pointers would be greatly appreciated.
-Tom
