network

package
v0.0.0-...-0308c90 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	ClientConnections *list.List

	ServerConnection net.Conn
	// contains filtered or unexported fields
}

func NewController

func NewController() *Controller

func (*Controller) ConnectToServer

func (nc *Controller) ConnectToServer(address, port string)

func (*Controller) SendToClients

func (nc *Controller) SendToClients(info []byte)

func (*Controller) StartReadingFromServer

func (nc *Controller) StartReadingFromServer(infoChanel chan<- []byte)

func (*Controller) StartServer

func (nc *Controller) StartServer(port string)

func (*Controller) StopServer

func (nc *Controller) StopServer()

type Net

type Net interface {
	StartServer(port string)
	StopServer()
	SendToClients(info []byte)
	ConnectToServer(address, port string)
	StartReadingFromServer(infoChanel chan<- []byte)
}

Jump to

Keyboard shortcuts

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