QGrpcServerStream Class
QGrpcServerStream 클래스는 서버 스트리밍 RPC를 처리하는 데 필요한 액세스를 제공합니다. 더 보기...
Header: | #include <QGrpcServerStream> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
이후 | Qt 6.7 |
상속합니다: | QGrpcOperation |
공용 함수
virtual | ~QGrpcServerStream() override |
시그널
void | messageReceived() |
상세 설명
QGrpcServerStream 클래스는 서버 스트리밍 원격 프로시저 호출(RPC)을 처리하기 위한 인터페이스를 제공하며, 이는 네 가지 서비스 메서드 중 하나인 gRPC™ 서비스 메서드 중 하나입니다.
자세한 개요는 Qt GRPC 클라이언트 가이드를 참조하세요.
참고: 사용자는 Client
인터페이스에서 반환되는 고유한 RPC 핸들러를 관리하여 적어도 finished 신호가 전송될 때까지 그 존재를 보장해야 할 책임이 있습니다. 이 신호를 수신한 후에는 핸들러를 안전하게 재할당하거나 폐기할 수 있습니다.
멤버 함수 문서
[override virtual noexcept]
QGrpcServerStream::~QGrpcServerStream()
QGrpcServerStream 를 파괴합니다.
[signal]
void QGrpcServerStream::messageReceived()
이 신호는 스트리밍 RPC가 서버로부터 새 메시지를 수신했을 때 발생합니다. 그러면 read() 메서드를 사용하여 수신된 메시지를 역직렬화할 수 있습니다.
© 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.