serial

package
v0.0.0-...-d1f8a93 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SerialClient

type SerialClient struct {
	icommon.TunnelInterfaceClient
	// contains filtered or unexported fields
}

func GetTcpClient

func GetTcpClient(saddress, PortName string, BaudRate, DataBits, StopBits, MinimumReadSize uint, tun_dialer tcommon.TunnelDialer) SerialClient

func (SerialClient) Close

func (s SerialClient) Close()

func (SerialClient) HandleConnection

func (s SerialClient) HandleConnection(conn net.Conn, tconn net.Conn) error

func (SerialClient) WaitingForConnection

func (s SerialClient) WaitingForConnection()

type TcpServer

type TcpServer struct {
	icommon.TunnelInterfaceServer
	// contains filtered or unexported fields
}

func GetTcpServer

func GetTcpServer(url string) TcpServer

func (TcpServer) HandleConnection

func (t TcpServer) HandleConnection(conn net.Conn) error

Jump to

Keyboard shortcuts

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