kcpx

package
v0.0.0-...-94820cb Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Unlicense Imports: 8 Imported by: 0

Documentation

Overview

Package kcpx is some tidy wrappers around rpcx/kcp RPC communication

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewXClient

func NewXClient(address, serviceName, password string) (x client.XClient)

NewXClient returns a new XClient configured for parallelcoin rpcx service for a given service name

func Serve

func Serve(address, serviceName, password string,
	service interface{}) (srv *server.Server, shutdown func() <-chan struct{})

Serve serves up an RPC service that can be contacted over kcp with the same password as used for NewXClient

Types

type ConfigUDPSession

type ConfigUDPSession struct{}

func (*ConfigUDPSession) HandleConnAccept

func (p *ConfigUDPSession) HandleConnAccept(conn net.Conn) (net.Conn, bool)

Jump to

Keyboard shortcuts

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