Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { UUID string Conn net.Conn Name string PubKey []byte // if nil - no handshake yet }
func New ¶
func New(conn net.Conn) *Connection
func (*Connection) Handshaked ¶
func (c *Connection) Handshaked() bool
func (*Connection) UpdadeKey ¶
func (c *Connection) UpdadeKey(pubKey []byte) error
func (*Connection) UpdateName ¶
func (c *Connection) UpdateName()
Click to show internal directories.
Click to hide internal directories.