vortexconn

package
v0.0.0-...-6562eda Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2015 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

Connection is an AES-encrypted TCP connection.

func Connect

func Connect(addr string, keyPair *pubkeycrypto.KeyPair) (*Connection, error)

Connect establishes an encrypted connection and returns it.

func (*Connection) Read

func (c *Connection) Read() ([]byte, error)

func (*Connection) Write

func (c *Connection) Write(b []byte) error

type Listener

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

Listener is a listener for our custom AES-encrypted connections.

func Listen

func Listen(laddr string, keyPair *pubkeycrypto.KeyPair) (*Listener, error)

Listen creates and returns the Listener.

func (*Listener) Accept

func (l *Listener) Accept() *Connection

Accept returns the next Connection that has been established on our listener.

func (*Listener) Close

func (l *Listener) Close()

Close closes this listener. It will not implicitly close existing connections.

Jump to

Keyboard shortcuts

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