tomatome / grdp

pure golang rdp protocol
GNU General Public License v3.0
190 stars 70 forks source link

Incomplete code,lost #15

Closed shadow1ng closed 1 year ago

shadow1ng commented 1 year ago
# github.com/tomatome/grdp/client [github.com/tomatome/grdp/client.test]
.\rfb.go:28:14: c.vnc.Connect undefined (type *rfb.RFB has no field or method Connect)

and grdp.go.80

    c.SetSender(g.sec)
    g.sec.On(c.GetType(), func(s []byte) {
        c.Handle(s)
    })

but this code donot has the codes of SetSender and Handle func

tomatome commented 1 year ago
# github.com/tomatome/grdp/client [github.com/tomatome/grdp/client.test]
.\rfb.go:28:14: c.vnc.Connect undefined (type *rfb.RFB has no field or method Connect)

and grdp.go.80

  c.SetSender(g.sec)
  g.sec.On(c.GetType(), func(s []byte) {
      c.Handle(s)
  })

but this code donot has the codes of SetSender and Handle func

I have solved it, please use the latest code

and the grdp.go file is obsolete. Please refer to example

shadow1ng commented 1 year ago

okok