Hey,
I'm trying to integrate a new self developed input device into SU. The device is connected over RS232 and data is processed through an C# application.
Now I tried to send the data over UDP to SU. This is my Ruby Plugin code for testing:
require 'socket'
server = Thread.new {
$port = 3157
$maxSize = 100
serverSocket = UDPSocket.new
serverSocket.bind("127.0.0.1", $port)
UI.messagebox("Socket open!")
loop {
data = serverSocket.recvfrom($maxSize)
if data.length != 0
UI.messagebox(data)
end
}
}
If I send a UDP message to this socket, i don't get a message from SU but Windows shows me, that the socket is open.
Could anybody tell me why this is not working? Thank you!
Greetings,
Patrick