rpc

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(
	conn net.Conn,
	headerBuffer []byte,
	payloadBuffer []byte,
	maxHeaderSize int,
	maxPayloadSize int,
) (
	reqType api.RPCType,
	header []byte,
	payload []byte,
	err error,
)

Read the rpc request from the connection, If a payload or header buffer is passed, then this buffer will be used if the capacity is sufficient.

func Write

func Write(
	conn net.Conn,
	reqType api.RPCType,
	header []byte,
	payload []byte,
	maxHeaderSize int,
	maxPayloadSize int,
) (err error)

Write the rpc request to the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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