driver

package
v2.187.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GoHandleFoundPeer func(remotePID string) bool            = nil
	GoHandleLostPeer  func(remotePID string)                 = nil
	GoReceiveFromPeer func(remotePID string, payload []byte) = nil
)

Functions

func BindNativeToGoFunctions

func BindNativeToGoFunctions(hfp func(string) bool, hlp func(string), rfp func(string, []byte))

Native -> Go functions

func CloseConnWithPeer

func CloseConnWithPeer(remotePID string)

func DialPeer

func DialPeer(remotePID string) bool

func HandleFoundPeer added in v2.151.1

func HandleFoundPeer(remotePID *C.char) int

func HandleLostPeer added in v2.187.1

func HandleLostPeer(remotePID *C.char)

func ReceiveFromPeer added in v2.151.1

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

func SendToPeer

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

func StartMCDriver

func StartMCDriver(localPID string)

func StopMCDriver

func StopMCDriver()

Types

This section is empty.

Jump to

Keyboard shortcuts

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