跳转到正文

raw_packet_send API ​

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

模块说明 ​

text
Prepare one bounded raw frame for the existing durable managed dispatcher.

MAX_RAW_PACKET_BYTES ​

python
MAX_RAW_PACKET_BYTES = 128 << 10

RAW_PACKET_OPERATION ​

python
RAW_PACKET_OPERATION = 'framework.packet.send_raw'

RawPacketSender ​

python
class RawPacketSender

SDK 说明:

text
No queue or retry. Retain the prepared intent before calling submit.

Frames contain the decrypted, decompressed packet header and body, without
RakNet, batch length, compression or encryption wrappers. Only the current
bot-to-server connection is supported. Connection IDs come from observation;
a reconnect makes a prepared intent stale. Do not replace its connection,
key or deadline after uncertain admission.

RawPacketSender.__init__ ​

python
def __init__(self, operations)

RawPacketSender.prepare ​

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

RawPacketSender.submit ​

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

RawPacketSender.operations ​

python
self.operations

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

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