Documentation ¶
Index ¶
- type Handler
- type MessageListener
- type VncConn
- func (c *VncConn) AddListeners(listener *MessageListener)
- func (c *VncConn) BufFlush() error
- func (c *VncConn) BufRead(buf []byte) (int, error)
- func (c *VncConn) BufWrite(buf []byte) (int, error)
- func (c *VncConn) Close() error
- func (c *VncConn) Conn() net.Conn
- func (c *VncConn) GetListeners() []*MessageListener
- func (c *VncConn) ListenChan() (err error)
- func (c *VncConn) Read(data interface{}) error
- func (c *VncConn) ReadErrorReason() string
- func (c *VncConn) RunListeners()
- func (c *VncConn) SetListeners(listeners []*MessageListener)
- func (c *VncConn) Write(data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageListener ¶
type MessageListener interface {
Handle(c *VncConn)
}
type VncConn ¶
type VncConn struct { C net.Conn Br *bufio.Reader Bw *bufio.Writer Listeners []*MessageListener ErrCh chan error QuitCh chan error }
func (*VncConn) AddListeners ¶
func (c *VncConn) AddListeners(listener *MessageListener)
func (*VncConn) GetListeners ¶
func (c *VncConn) GetListeners() []*MessageListener
func (*VncConn) ListenChan ¶
func (*VncConn) ReadErrorReason ¶
func (*VncConn) RunListeners ¶
func (c *VncConn) RunListeners()
func (*VncConn) SetListeners ¶
func (c *VncConn) SetListeners(listeners []*MessageListener)
Click to show internal directories.
Click to hide internal directories.