package mt
+import "github.com/anon55555/mt/rudp"
+
type ToSrvCmd interface {
Cmd
toSrvCmdNo() uint16
Lang string
}
-// ToSrvModChanJoin attempts to join a mod channel.
-type ToSrvModChanJoin struct {
+// ToSrvJoinModChan attempts to join a mod channel.
+type ToSrvJoinModChan struct {
Channel string
}
-// ToSrvModChanJoin attempts to leave a mod channel.
-type ToSrvModChanLeave struct {
+// ToSrvLeaveModChan attempts to leave a mod channel.
+type ToSrvLeaveModChan struct {
Channel string
}
-// ToSrvModChanJoin sends a message on a mod channel.
-type ToSrvModChanMsg struct {
+// ToSrvMsgModChan sends a message on a mod channel.
+type ToSrvMsgModChan struct {
Channel string
Msg string
}
Blks [][3]int16
}
+// ToSrvHaveMedia tells the server that the client has received the media.
+type ToSrvHaveMedia struct {
+ //mt:len8
+ token uint32
+}
+
// ToSrvDeletedBlks tells the server that the client has deleted Blks.
type ToSrvDeletedBlks struct {
//mt:len8
type ToSrvSRPBytesM struct {
M []byte
}
+
+type ToSrvDisco struct{}
+
+func (*ToSrvDisco) cmd() {}
+func (*ToSrvDisco) toSrvCmdNo() uint16 { return 0xffff }
+func (*ToSrvDisco) DefaultPktInfo() rudp.PktInfo { return rudp.PktInfo{} }