跳转到正文

typed_packet_send API ​

完整接口目录 · 协议包用法 · 工具包下载

模块说明 ​

text
Frozen generic model intents for the Host-owned packet dispatcher.

PROTOCOL_PACKET_OPERATION ​

python
PROTOCOL_PACKET_OPERATION = 'framework.packet.send_protocol'

TypedPacketSender ​

python
class TypedPacketSender

SDK 说明:

text
Prepare locally; encode in the Host at claim using the fenced connection.

No diagnostic codec RPC is part of prepare or submit. Mutating the model
later cannot alter a prepared intent. Retain the intent and operation ID
when admission or dispatch is uncertain; this helper never retries.

TypedPacketSender.__init__ ​

python
def __init__(self, operations)

TypedPacketSender.prepare ​

python
def prepare(self, packet, *, connection_id, idempotency_key, deadline)

TypedPacketSender.submit ​

python
async def submit(self, intent, *, timeout=10)

TypedPacketSender.operations ​

python
self.operations

公开实例属性,在 __init__ 中设置。

Neomega · 使用、开发与参考文档