2

Is there good example of how to implement custom protocol for QtRemoteObjects?

There are not too well documented classes QtROClientFactory and QtROServerFactory in documentation (because in 5.9 QtRO just technology preview). There is no example of how to implement custom transport into examples of qtremoteobjects/.

I especially interested in implementation of custom scheme ssl:// via QSslSocket.

Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
  • 1
    You could try to "copy" the tcp implementation and replace all tcp sockets by ssl sockets etc. Have a look at https://github.com/qt/qtremoteobjects/blob/5.9/src/remoteobjects/qconnection_tcpip_backend_p.h and https://github.com/qt/qtremoteobjects/blob/5.9/src/remoteobjects/qconnection_tcpip_backend.cpp – Felix Oct 01 '17 at 17:07
  • @Felix It seems `QtSsl` not support client auth from server side. It is very bad omission. – Tomilov Anatoliy Oct 02 '17 at 04:30
  • Define "client auth". You can use client-certificates, if that's what you mean. If you want "real" user authentication (like http auth), you could use a 2-step implementation. Authenticate via HTTP to get a token, and send that token on connection the ssl socket (or use QtWebSockets and pass it as header) – Felix Oct 04 '17 at 08:16

0 Answers0