sender

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectSend

func DirectSend(msg *msg1.ChainMessage) (*msg1.ChainMessage, error)

* 定位器之间直接发送方法

func RelaySend

func RelaySend(chainMessage *msg1.ChainMessage) (*msg1.ChainMessage, error)

* 无错无返回表示不需要转发

func Send

func Send(msg *msg1.ChainMessage) (*msg1.ChainMessage, error)

* 发送ChainMessage消息的唯一方法 1.找出发送的目标地址和方式 2.根据情况处理校验,加密,压缩等 3.建立合适的通道并发送,比如libp2p的Pipe并Write消息流 4.等待即时的返回,校验,解密,解压缩等

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL