This commit is contained in:
adman
2026-01-13 00:22:11 +01:00
parent 11bf0624a4
commit f97538fe19
6 changed files with 566 additions and 6 deletions
+2
View File
@@ -65,6 +65,7 @@ func (c *Conn) SetVersion(version string) (err error) {
}
func (c *Conn) Send(packet proto_base.EncodeDecodeAble) (err error) {
//fmt.Println("send:", packet)
switch packet := packet.(type) {
case *UnCodablePacket:
err = c.SendRaw(packet.Data)
@@ -112,6 +113,7 @@ func (c *Conn) Receive() (packet proto_base.EncodeDecodeAble, err error) {
packet = &UnCodablePacket{Err: PacketNotFullyDecodedError, Data: packetBytes, Direction: c.Actor.ReceiveDirection()}
return
}
//fmt.Println("recv:", packet)
return
}