server

package
v0.0.0-...-337f05a Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpQotdServer

type TcpQotdServer interface {
	// To start the server, provide a port on which to listen and a channel
	// "quotes" from which to obtain new quotes
	Start(port int, quotes chan string) error

	// Close the server
	Close()

	// Turn on debugging
	SetDebug(debug bool)
}

External interface to the UdpQotdServer

func NewTCP

func NewTCP() TcpQotdServer

type UdpQotdServer

type UdpQotdServer interface {
	// To start the server, provide a port on which to listen and a channel
	// "quotes" from which to obtain new quotes
	Start(port int, quotes chan string) error

	// Close the server
	Close()

	// Turn on debugging
	SetDebug(debug bool)
}

External interface to the UdpQotdServer

func NewUDP

func NewUDP() UdpQotdServer

Jump to

Keyboard shortcuts

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