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