ws

package
v0.0.0-...-1dd846c Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host string
	Port string
)

Functions

func NewWsSocketProxy

func NewWsSocketProxy(host, port, config string) (socket Connector.Socket, err error)

Types

type State

type State int32
const (
	ST_INITED State = iota
	ST_CLOSED
)

type WsConn

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

func NewConn

func NewConn(ws *websocket.Conn) *WsConn

func (*WsConn) Close

func (c *WsConn) Close()

func (*WsConn) Done

func (c *WsConn) Done() chan bool

func (*WsConn) Recive

func (c *WsConn) Recive() chan []byte

func (*WsConn) Send

func (c *WsConn) Send(data []byte) error

type WsSocket

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

func (*WsSocket) Accept

func (ws *WsSocket) Accept() chan Connector.Connector

func (*WsSocket) Start

func (ws *WsSocket) Start() error

func (*WsSocket) Stop

func (ws *WsSocket) Stop() error

Jump to

Keyboard shortcuts

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