mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-09-22 01:47:46 +00:00
added RfbReaderHelper which wraps the connection reader and allows to add listeners like the recorder or proxy
added fbs recorder, and tested it against vine vnc server 5.0.1 and rfbplayer 1.4 —> works! (there is still some problem with tight VNC server)
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
// An Encoding implements a method for encoding pixel data that is
|
||||
// sent by the server to the client.
|
||||
type Encoding interface {
|
||||
@@ -13,7 +9,7 @@ type Encoding interface {
|
||||
// Read reads the contents of the encoded pixel data from the reader.
|
||||
// This should return a new Encoding implementation that contains
|
||||
// the proper data.
|
||||
Read(*PixelFormat, *Rectangle, io.Reader) (Encoding, error)
|
||||
Read(*PixelFormat, *Rectangle, *RfbReadHelper) (Encoding, error)
|
||||
}
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user