net

package
v0.0.0-...-45e7857 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectedPlayers *cmap.ConcurrentMap = cmap.New()
View Source
var ErrNoWebsocket = errors.New(`Don't have any websocket connection.`)
View Source
var Hub = newHub()

Functions

func Listen

func Listen(_service int)

Types

type Connection

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

func NewConnection

func NewConnection(_ws *websocket.Conn) *Connection

func (*Connection) AssignToPlayer

func (c *Connection) AssignToPlayer(_player interfaces.IPlayer)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Reader

func (c *Connection) Reader()

func (*Connection) Writer

func (c *Connection) Writer()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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