이 페이지에서

QGrpcWritesDoneInterceptor Class

RPC에 대한 메시지 쓰기 완료 시점을 가로챕니다. 더 보기...

헤더: #include <QGrpcInterceptor>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
다음부터: Qt 6.11

참고: 이 클래스의 모든 함수는 재진입 가능합니다.

공개 함수

virtual ~QGrpcWritesDoneInterceptor()
virtual void onWritesDone(QGrpcInterceptionContext &context) = 0

상세 설명

RPC에 대해 더 이상 나가는 메시지가 기록되지 않을 때를 관찰하려면 QGrpcWritesDoneInterceptor를 구현하십시오.

인터셉션 메커니즘에 대한 소개와 인터셉터 인터페이스가 RPC의 수명 주기에 참여하는 방법에 대한 내용은 Qt GRPC 인터셉터 개요를 참조하십시오.

참고: 이 인터셉터는 인바운드 방향으로 작동합니다. 여러 인터셉터 콜백이 체인을 통해 흐르는 방식에 대한 자세한 내용은 방향 및 흐름 섹션을 참조하십시오.

또한 ‘ QtGrpc::InterceptorCapability::WritesDone ’ 및 ‘ QGrpcInterceptionContext ’을참조하십시오 .

멤버 함수 문서

[virtual noexcept] QGrpcWritesDoneInterceptor::~QGrpcWritesDoneInterceptor()

요격기를 파괴한다.

[pure virtual] void QGrpcWritesDoneInterceptor::onWritesDone(QGrpcInterceptionContext &context)

로컬 측에서 더 이상 발신 메시지를 작성하지 않겠다고 표시할 때 호출됩니다.

context 는 가로채진 RPC에 대한 정보를 제공합니다.

QGrpcClientStream::writesDone() 및 QGrpcBidiStream::writesDone()도 참조하십시오 .

© 2026 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.