client

package
v0.0.0-...-7b1081a Latest Latest
Warning

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

Go to latest
Published: May 2, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSocketMasterAddress = "127.0.0.1:9999"

Functions

func Listen

func Listen(socketDefinition protocol.SocketDefinition) (net.Listener, error)

Types

type Client

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

func New

func New(socketMasterAddress string) *Client

func (*Client) Listen

func (client *Client) Listen(socketDefinition protocol.SocketDefinition) (net.Listener, error)

Listen connects to the socket master, binds a port, and accepts multiplexed traffic as new connections

type Listener

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

func (*Listener) Accept

func (li *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (li *Listener) Addr() net.Addr

func (*Listener) Close

func (li *Listener) Close() error

Jump to

Keyboard shortcuts

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