← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674852]: Jython: socket connecting only once, then Java Exception

 

Question #674852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674852

Matteo Acquarone posted a new comment:
ok, 
I'll go searching the web...the not receiving is intentional, I want first to be able to repeatedly send data and then I'll take care of receiving it...
I tried the same code with Pydev (eclipse) with jython interpreter (without only the pop-up) and it work every time
thanks for your prompt response.
Matteo
p.s. code for PyDev:

import socket
msg="hello world From SikuliX\n"
data = bytearray( msg)
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 client_socket.connect(("192.168.100.1", 5050))
client_socket.send(data)
client_socket.close()  
exit()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.