Libsoup HTTP 1.1 chunked transfer encoding

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:

https://tools.ietf.org/html/rfc2616#section-4.4
https://tools.ietf.org/html/rfc2616#section-3.6

First, is it supported by libsoup? Would it be the right approach at all?


by Joël

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 …

… and then provide HTTP status code 303.

https://tools.ietf.org/html/rfc7231#section-6.4.4

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.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.