PDA

View Full Version : Direct calls to Girder over tcp/ip



Yoggi
February 7th, 2016, 09:56 AM
Hi Ron,

I am interested in creating my own remote app using Qt /QML or maybe an other programming environment and my question is, how can I do direct calls to Girder over tcp ip(not using the webserver)?

Using csevent I see that “csevent 127.0.0.1 102424 girder hello 18 payload1 payload2” gets encoded to “Agirder&{f812c024-a943-48cf-8f06-e43f6a7f384d}“

How is this encoding done? Do you have an algorithm (crc-8 or similar) for this that you can share or is this secret?

Joachim

Ron
February 7th, 2016, 07:06 PM
The protocol is not really secret, but not intended for publication as I want to be able to modify as I see fit. Once published it gets set in stone which I really don't want to do.

However if you decide to use NetRemote+QML you can use the

girder.sendEvent(eventString, eventDevice, 1, [pld1,pl2]);

function. NetRemote can be started with your own QML file which allows you to make some very powerful interfaces. Is that something that would work for you?