client

package
v0.0.0-...-6b190b8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelnetClient

type TelnetClient struct {
	// contains filtered or unexported fields
}

TelnetClient maintain a connection to target

func NewTelnetClient

func NewTelnetClient(host string, port int, protocolName, interfaceID, version, group, method string, reqPkg interface{}, timeout int) (*TelnetClient, error)

NewTelnetClient create a new tcp connection, and create default request

func (*TelnetClient) Destroy

func (t *TelnetClient) Destroy()

Destroy close the tcp conn

func (*TelnetClient) ProcessRequests

func (t *TelnetClient) ProcessRequests(userPkg interface{})

ProcessRequests send all requests

Jump to

Keyboard shortcuts

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