@@ 15,10 15,9 @@ import (
type headerId int16
const (
- requestBindMethod headerId = 0 // n/a
- requestRunCommand headerId = 1 // n/a
- requestRunLuaCommand headerId = 4 // added in RemoteTools.cpp by addMethod()
- requestQuit headerId = -4 // RPC_REQUEST_QUIT
+ requestBindMethod headerId = 0 // n/a
+ requestRunCommand headerId = 1 // n/a
+ requestQuit headerId = -4 // RPC_REQUEST_QUIT
responseResult headerId = -1 // RPC_REPLY_RESULT
responseFail headerId = -2 // RPC_REPLY_FAIL
@@ 98,15 97,6 @@ func (c Conn) ShakeHands() error {
const sizeHeader = 8
-// id is:
-// RequestQuit: quitting
-// when running a cmd. then id is
-// BindMethod: 0
-// RunCommand: 1
-// others from RemoteTools:
-// CoreSuspend: 2
-// CoreResume: 3
-// RunLua: 4
// marshaled: xx00yyyy, where x=id and y=size
// size is ignored when id = RequestQuit
type header struct {