QAbstractGrpcChannel Class
QAbstractGrpcChannel 클래스는 연산의 전송 계층을 구현하기 위한 인터페이스를 제공합니다. gRPC™ 연산 계층을 구현하기 위한 인터페이스를 제공합니다. 더 보기...
Header: | #include <QAbstractGrpcChannel> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
이후 | Qt 6.5 |
상속된 사람: |
공용 함수
virtual | ~QAbstractGrpcChannel() |
const QGrpcChannelOptions & | channelOptions() const & |
virtual std::shared_ptr<QAbstractProtobufSerializer> | serializer() const = 0 |
(since 6.8) void | setChannelOptions(QGrpcChannelOptions &&options) |
(since 6.8) void | setChannelOptions(const QGrpcChannelOptions &options) |
보호된 함수
QAbstractGrpcChannel() | |
QAbstractGrpcChannel(const QGrpcChannelOptions &options) |
상세 설명
이 인터페이스를 구현하여 다음에 대한 사용자 지정 채널을 만듭니다. gRPC™ 사용자 정의 채널을 생성합니다. QGrpcHttp2Channel 클래스는 HTTP/2 통신을 위한 QAbstractGrpcChannel의 완전한 기능 구현으로 제공됩니다.
QGrpcChannelOptions 와 QGrpcHttp2Channel도 참조하세요 .
멤버 함수 문서
[since 6.8]
void QAbstractGrpcChannel::setChannelOptions(QGrpcChannelOptions &&options)
[since 6.8]
void QAbstractGrpcChannel::setChannelOptions(const QGrpcChannelOptions &options)
채널을 설정합니다 options.
참고: 업데이트된 채널 옵션은 현재 활성 상태인 통화나 스트림에는 영향을 미치지 않습니다. 수정된 옵션은 이 채널을 통해 만들어진 새로운 RPC에만 적용됩니다.
이 기능은 Qt 6.8에 도입되었습니다.
channelOptions 를참조하세요 .
[protected]
QAbstractGrpcChannel::QAbstractGrpcChannel()
기본값 - QAbstractGrpcChannel을 구성합니다.
[explicit protected]
QAbstractGrpcChannel::QAbstractGrpcChannel(const QGrpcChannelOptions &options)
지정된 options 을 사용하여 QAbstractGrpcChannel을 생성합니다.
[virtual noexcept]
QAbstractGrpcChannel::~QAbstractGrpcChannel()
QAbstractGrpcChannel 를 파괴합니다.
[noexcept]
const QGrpcChannelOptions &QAbstractGrpcChannel::channelOptions() const &
채널에서 사용하는 옵션을 반환합니다.
setChannelOptions도 참조하세요 .
[pure virtual]
std::shared_ptr<QAbstractProtobufSerializer> QAbstractGrpcChannel::serializer() const
이 순수 가상 함수는 메시지의 직렬화 및 역직렬화에 사용되는 QAbstractProtobufSerializer 을 검색합니다.
© 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.