カスタムトランスポートバックエンドを実装するためのAPI

Qt Remote Objects は、カスタムトランスポートバックエンドを実装するための抽象インターフェイスをいくつか提供している。これらのクラスの背後にあるコンセプトは、接続可能なアドレスを持つホストノードが必要であるということです。そして、クライアントオブジェクトがあり、これは公に構築することができ、サーバに接続することができます。サーバーは接続要求を受け取ると、サーバー側の接続を作成し、クライアントと直接通信する。このように、3つの抽象化があります。1つはサーバー用( )、1つは接続のクライアント側( )、3つ目は接続のサーバー側( )です。後者の2つは を継承しています。QConnectionAbstractServerQtROClientIoDeviceQtROServerIoDevice QtROIoDeviceBase

APIの概要

  • QtROIoDeviceBase
  • QtROClientIoDevice
  • QtROServerIoDevice
  • QConnectionAbstractServer

これらのインタフェースを実装した後、qRegisterRemoteObjectsServer() およびqRegisterRemoteObjectsClient() メソッドを使用してカスタム・プロトコルを登録できます。

注: これらのAPIは、Qt Remote Objects のカスタム通信プロトコルをより柔軟に実装するために提供されています。つまり、APIは開発されたQtのバージョンでのみ動作することが保証されています。API の変更はマイナーリリースでのみ行われます。(6.1 や 6.2 など)。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.