jkraehemann
(Joël Krähemann)
December 20, 2019, 2:49pm
1
Hi,
I just want to implement OSC over XMLRPC. The AgsOscServer is yet implemented using UDP/TCP sockets.
I did some research about XMLRPC because I was unsure if I can send continuing OSC messages over XMLRPC from server to client. It is for monitoring and it is streaming like:
http://nongnu.org/gsequencer/help/osc-docs/2.3.2/ch08.html
I figured out that HTTP 1.1 specifies chunked transfer encoding. See here:
First, is it supported by libsoup? Would it be the right approach at all?
by Joël
jkraehemann
(Joël Krähemann)
December 20, 2019, 3:31pm
2
I think using WebSockets would do the job.
https://developer.gnome.org/libsoup/stable/libsoup-2.4-WebSockets.html
What I want is a redirect from XMLRPC request to a WebSocket or alike …
jkraehemann
(Joël Krähemann)
December 20, 2019, 4:15pm
3
… and then provide HTTP status code 303.
The Hypertext Transfer Protocol (HTTP) is a stateless \%application- level protocol for distributed, collaborative, hypertext information systems. This document defines the semantics of HTTP/1.1 messages, as expressed by request methods, request...
So the XMLRPC request instantiates a WebSocket on the server side. Set 303 for the response’s status code.
https://developer.gnome.org/libsoup/stable/SoupMessage.html#soup-message-set-redirect
After receiving 303 the client shall connect to the websocket.
system
(system)
Closed
January 3, 2020, 4:15pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.