connection

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Single Connection var conn net.Conn

Functions

func GetCommunicationChannels

func GetCommunicationChannels() (*Out, *In)

func InitializeThreads

func InitializeThreads() error

Initializes threads with Channel Structs Opens Connection

func Reader

func Reader(out *Out, in *In)

func Writer

func Writer(out *Out, in *In)

Types

type In

type In struct {
	Commands chan *commands.Command
	Quit     chan int
}

func GetInputChannels

func GetInputChannels() *In

type Out

type Out struct {
	CommandResponses chan commands.CommandResponse
	Errors           chan error
}

func GetOutputChannels

func GetOutputChannels() *Out

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL