driver

package
v2.343.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger       *zap.Logger
	ProtocolName string
)

Functions

func CloseConnWithPeer

func CloseConnWithPeer(remotePID string)

func DialPeer

func DialPeer(remotePID string) bool

func MCHandleFoundPeer added in v2.336.0

func MCHandleFoundPeer(remotePID *C.char) int

func MCHandleLostPeer added in v2.336.0

func MCHandleLostPeer(remotePID *C.char)

func MCLog added in v2.336.0

func MCLog(level C.enum_level, message *C.char)

func MCReceiveFromPeer added in v2.336.0

func MCReceiveFromPeer(remotePID *C.char, payload unsafe.Pointer, length C.int)

func MCUseExternalLogger added in v2.336.0

func MCUseExternalLogger()

func SendToPeer

func SendToPeer(remotePID string, payload []byte) bool

func Start

func Start(localPID string)

func Stop

func Stop()

Types

This section is empty.

Jump to

Keyboard shortcuts

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