2014-04-10 16:20:27 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Console
|
2014-07-06 21:05:59 +08:00
|
|
|
-- @extend Ref
|
2014-07-02 10:15:26 +08:00
|
|
|
-- @parent_module cc
|
2014-04-10 16:20:27 +08:00
|
|
|
|
2016-04-21 15:07:41 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @overload self, cc.Console::Command, cc.Console::Command
|
|
|
|
-- @overload self, string, cc.Console::Command
|
|
|
|
-- @function [parent=#Console] addSubCommand
|
|
|
|
-- @param self
|
|
|
|
-- @param #string cmdName
|
|
|
|
-- @param #cc.Console::Command subCmd
|
|
|
|
-- @return Console#Console self (return value: cc.Console)
|
|
|
|
|
2014-04-10 16:20:27 +08:00
|
|
|
--------------------------------
|
2015-09-22 17:23:14 +08:00
|
|
|
-- starts listening to specified TCP port
|
2014-04-10 16:20:27 +08:00
|
|
|
-- @function [parent=#Console] listenOnTCP
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int port
|
2014-04-10 16:20:27 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-12-29 10:07:20 +08:00
|
|
|
--------------------------------
|
|
|
|
-- log something in the console
|
|
|
|
-- @function [parent=#Console] log
|
|
|
|
-- @param self
|
|
|
|
-- @param #char buf
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Console#Console self (return value: cc.Console)
|
2014-12-29 10:07:20 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2016-04-21 15:07:41 +08:00
|
|
|
-- @overload self, cc.Console::Command, string
|
|
|
|
-- @overload self, string, string
|
|
|
|
-- @function [parent=#Console] getSubCommand
|
2014-12-29 10:07:20 +08:00
|
|
|
-- @param self
|
2016-04-21 15:07:41 +08:00
|
|
|
-- @param #string cmdName
|
|
|
|
-- @param #string subCmdName
|
|
|
|
-- @return Console::Command#Console::Command ret (return value: cc.Console::Command)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- delete custom command
|
|
|
|
-- @function [parent=#Console] delCommand
|
|
|
|
-- @param self
|
|
|
|
-- @param #string cmdName
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Console#Console self (return value: cc.Console)
|
2014-12-29 10:07:20 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- stops the Console. 'stop' will be called at destruction time as well
|
|
|
|
-- @function [parent=#Console] stop
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Console#Console self (return value: cc.Console)
|
2014-12-29 10:07:20 +08:00
|
|
|
|
2016-04-21 15:07:41 +08:00
|
|
|
--------------------------------
|
|
|
|
-- get custom command
|
|
|
|
-- @function [parent=#Console] getCommand
|
|
|
|
-- @param self
|
|
|
|
-- @param #string cmdName
|
|
|
|
-- @return Console::Command#Console::Command ret (return value: cc.Console::Command)
|
|
|
|
|
2014-04-10 16:20:27 +08:00
|
|
|
--------------------------------
|
2015-09-22 17:23:14 +08:00
|
|
|
-- starts listening to specified file descriptor
|
2014-04-10 16:20:27 +08:00
|
|
|
-- @function [parent=#Console] listenOnFileDescriptor
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int fd
|
2014-04-10 16:20:27 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2016-04-21 15:07:41 +08:00
|
|
|
--------------------------------
|
|
|
|
-- set bind address<br>
|
|
|
|
-- address : 127.0.0.1
|
|
|
|
-- @function [parent=#Console] setBindAddress
|
|
|
|
-- @param self
|
|
|
|
-- @param #string address
|
|
|
|
-- @return Console#Console self (return value: cc.Console)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @overload self, cc.Console::Command, string
|
|
|
|
-- @overload self, string, string
|
|
|
|
-- @function [parent=#Console] delSubCommand
|
|
|
|
-- @param self
|
|
|
|
-- @param #string cmdName
|
|
|
|
-- @param #string subCmdName
|
|
|
|
-- @return Console#Console self (return value: cc.Console)
|
|
|
|
|
2014-04-10 16:20:27 +08:00
|
|
|
return nil
|