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.
Click to show internal directories.
Click to hide internal directories.