mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
29 lines
501 B
Go
29 lines
501 B
Go
package rdpgfx
|
|
|
|
import (
|
|
"encoding/hex"
|
|
|
|
"ShotRDP/grdp/core"
|
|
"ShotRDP/grdp/glog"
|
|
"ShotRDP/grdp/plugin"
|
|
)
|
|
|
|
const (
|
|
ChannelName = plugin.RDPGFX_DVC_CHANNEL_NAME
|
|
)
|
|
|
|
type gfxClient struct {
|
|
}
|
|
|
|
func (c *gfxClient) Send(s []byte) (int, error) {
|
|
glog.Debug("len:", len(s), "data:", hex.EncodeToString(s))
|
|
name, _ := c.GetType()
|
|
return c.w.SendToChannel(name, s)
|
|
}
|
|
func (c *gfxClient) Sender(f core.ChannelSender) {
|
|
c.w = f
|
|
}
|
|
func (c *gfxClient) GetType() (string, uint32) {
|
|
return ChannelName, 0
|
|
}
|