client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrConnFailed connection failure
	ErrConnFailed = errors.New("can't connect to ws server")
)

Functions

This section is empty.

Types

type TCPServer

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

TCPServer for listenning JDWP client

func NewTCPServer

func NewTCPServer(wsClient *WSClient, port int) *TCPServer

NewTCPServer create new server

func (*TCPServer) Start

func (server *TCPServer) Start() error

Start start tcp server

type WSClient

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

WSClient websocket client

func NewWSClient

func NewWSClient(host string, port int, path string, origin string, jdwpPort int, key *rsa.PublicKey) *WSClient

NewWSClient create WsClient

func (*WSClient) Connect

func (client *WSClient) Connect() (*websocket.Conn, error)

Connect connect to remote websocket server

Jump to

Keyboard shortcuts

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