|
PuzzleSDK
|
#include <SocketIOTest.h>
类 SocketIOTest 继承关系图:
SocketIOTest 的协作图:Public 成员函数 | |
| CREATE_FUNC (SocketIOTest) | |
| SocketIOTest () | |
| virtual | ~SocketIOTest () |
| virtual void | onClose (cocos2d::network::SIOClient *client) override |
| Used for network level socket close (not for disconnect from the socket.io server) 更多... | |
| virtual void | onError (cocos2d::network::SIOClient *client, const std::string &data) override |
| Used for network level socket error (not for disconnect from the socket.io server) 更多... | |
| void | closedSocketAction (cocos2d::network::SIOClient *client) |
| Common function to call on both socket.io disconnect and websocket close 更多... | |
| void | onMenuSIOClientClicked (cocos2d::Ref *sender) |
| void | onMenuTestMessageClicked (cocos2d::Ref *sender) |
| void | onMenuTestEventClicked (cocos2d::Ref *sender) |
| void | onMenuTestClientDisconnectClicked (cocos2d::Ref *sender) |
| void | onMenuSIOEndpointClicked (cocos2d::Ref *sender) |
| void | onMenuTestMessageEndpointClicked (cocos2d::Ref *sender) |
| void | onMenuTestEventEndpointClicked (cocos2d::Ref *sender) |
| void | onMenuTestEndpointDisconnectClicked (cocos2d::Ref *sender) |
| void | testevent (cocos2d::network::SIOClient *client, const std::string &data) |
| Socket.io event handler for custom event "testevent" 更多... | |
| void | echotest (cocos2d::network::SIOClient *client, const std::string &data) |
| Socket.io event handler for custom event "echoevent" 更多... | |
| void | connect (cocos2d::network::SIOClient *client, const std::string &data) |
| Socket.io event handler for event "connect" 更多... | |
| void | disconnect (cocos2d::network::SIOClient *client, const std::string &data) |
| Socket.io event handler for event "disconnect" 更多... | |
| void | message (cocos2d::network::SIOClient *client, const std::string &data) |
| Socket.io event handler for event "message" 更多... | |
| void | json (cocos2d::network::SIOClient *client, const std::string &data) |
| Socket.io event handler for event "json" This is only used in v 0.9.x, in 1.x this is handled as a "message" event 更多... | |
| virtual std::string | title () const override |
Public 成员函数 继承自 TestCase | |
| TestCase () | |
| ~TestCase () | |
| virtual std::string | subtitle () const |
| virtual Type | getTestType () const |
| virtual float | getDuration () const |
| virtual std::string | getExpectedOutput () const |
| virtual std::string | getActualOutput () const |
| virtual void | restartTestCallback (cocos2d::Ref *sender) |
| virtual void | nextTestCallback (cocos2d::Ref *sender) |
| virtual void | priorTestCallback (cocos2d::Ref *sender) |
| virtual void | onBackCallback (cocos2d::Ref *sender) |
| void | setTestSuite (TestSuite *testSuite) |
| TestSuite * | getTestSuite () const |
| float | getRunTime () const |
| void | setTestCaseName (const std::string &name) |
| std::string | getTestCaseName () const |
| const cocos2d::Label * | getSubtitleLable () const |
| const cocos2d::MenuItemImage * | getRestartTestItem () const |
| virtual void | onEnter () override |
Protected 属性 | |
| cocos2d::network::SIOClient * | _sioClient |
| cocos2d::network::SIOClient * | _sioEndpoint |
| cocos2d::Label * | _sioClientStatus |
Protected 属性 继承自 TestCase | |
| cocos2d::MenuItemImage * | _priorTestItem |
| cocos2d::MenuItemImage * | _restartTestItem |
| cocos2d::MenuItemImage * | _nextTestItem |
| cocos2d::Label * | _titleLabel |
| cocos2d::Label * | _subtitleLabel |
额外继承的成员函数 | |
Public 类型 继承自 TestCase | |
| enum class | Type { ROBUSTNESS , UNIT , GRAPHICAL_STATIC , MANUAL } |
Public 属性 继承自 TestCase | |
| CC_CONSTRUCTOR_ACCESS | __pad0__: virtual bool init() override |
在文件 SocketIOTest.h 第 38 行定义.
| SocketIOTest::SocketIOTest | ( | ) |
在文件 SocketIOTest.cpp 第 40 行定义.
引用了 _sioClientStatus, VisibleRect::left(), onMenuSIOClientClicked(), onMenuSIOEndpointClicked(), onMenuTestClientDisconnectClicked(), onMenuTestEndpointDisconnectClicked(), onMenuTestEventClicked(), onMenuTestEventEndpointClicked(), onMenuTestMessageClicked(), onMenuTestMessageEndpointClicked(), VisibleRect::right() , 以及 VisibleRect::rightBottom().
函数调用图:
|
virtual |
在文件 SocketIOTest.cpp 第 111 行定义.
| void SocketIOTest::closedSocketAction | ( | cocos2d::network::SIOClient * | client | ) |
Common function to call on both socket.io disconnect and websocket close
在文件 SocketIOTest.cpp 第 182 行定义.
引用了 _sioClient , 以及 _sioEndpoint.
被这些函数引用 disconnect() , 以及 onClose().
这是这个函数的调用关系图:| void SocketIOTest::connect | ( | cocos2d::network::SIOClient * | client, |
| const std::string & | data | ||
| ) |
Socket.io event handler for event "connect"
在文件 SocketIOTest.cpp 第 160 行定义.
引用了 _sioClientStatus.
被这些函数引用 onMenuSIOClientClicked() , 以及 onMenuSIOEndpointClicked().
这是这个函数的调用关系图:| SocketIOTest::CREATE_FUNC | ( | SocketIOTest | ) |
| void SocketIOTest::disconnect | ( | cocos2d::network::SIOClient * | client, |
| const std::string & | data | ||
| ) |
Socket.io event handler for event "disconnect"
在文件 SocketIOTest.cpp 第 170 行定义.
引用了 _sioClientStatus , 以及 closedSocketAction().
被这些函数引用 onMenuSIOClientClicked() , 以及 onMenuSIOEndpointClicked().
函数调用图:
这是这个函数的调用关系图:| void SocketIOTest::echotest | ( | cocos2d::network::SIOClient * | client, |
| const std::string & | data | ||
| ) |
Socket.io event handler for custom event "echoevent"
在文件 SocketIOTest.cpp 第 127 行定义.
引用了 _sioClientStatus.
被这些函数引用 onMenuSIOClientClicked() , 以及 onMenuSIOEndpointClicked().
这是这个函数的调用关系图:| void SocketIOTest::json | ( | cocos2d::network::SIOClient * | client, |
| const std::string & | data | ||
| ) |
Socket.io event handler for event "json" This is only used in v 0.9.x, in 1.x this is handled as a "message" event
在文件 SocketIOTest.cpp 第 150 行定义.
引用了 _sioClientStatus.
被这些函数引用 onMenuSIOClientClicked() , 以及 onMenuSIOEndpointClicked().
这是这个函数的调用关系图:| void SocketIOTest::message | ( | cocos2d::network::SIOClient * | client, |
| const std::string & | data | ||
| ) |
Socket.io event handler for event "message"
在文件 SocketIOTest.cpp 第 140 行定义.
引用了 _sioClientStatus.
被这些函数引用 onMenuSIOClientClicked() , 以及 onMenuSIOEndpointClicked().
这是这个函数的调用关系图:
|
overridevirtual |
Used for network level socket close (not for disconnect from the socket.io server)
在文件 SocketIOTest.cpp 第 297 行定义.
引用了 _sioClientStatus , 以及 closedSocketAction().
函数调用图:
|
overridevirtual |
Used for network level socket error (not for disconnect from the socket.io server)
在文件 SocketIOTest.cpp 第 309 行定义.
引用了 _sioClientStatus.
| void SocketIOTest::onMenuSIOClientClicked | ( | cocos2d::Ref * | sender | ) |
在文件 SocketIOTest.cpp 第 196 行定义.
引用了 _sioClient, connect(), disconnect(), echotest(), json(), message() , 以及 testevent().
被这些函数引用 SocketIOTest().
函数调用图:
这是这个函数的调用关系图:| void SocketIOTest::onMenuSIOEndpointClicked | ( | cocos2d::Ref * | sender | ) |
在文件 SocketIOTest.cpp 第 213 行定义.
引用了 _sioEndpoint, connect(), disconnect(), echotest(), json(), message() , 以及 testevent().
被这些函数引用 SocketIOTest().
函数调用图:
这是这个函数的调用关系图:| void SocketIOTest::onMenuTestClientDisconnectClicked | ( | cocos2d::Ref * | sender | ) |
在文件 SocketIOTest.cpp 第 260 行定义.
引用了 _sioClient , 以及 _sioClientStatus.
被这些函数引用 SocketIOTest().
这是这个函数的调用关系图:| void SocketIOTest::onMenuTestEndpointDisconnectClicked | ( | cocos2d::Ref * | sender | ) |
在文件 SocketIOTest.cpp 第 278 行定义.
引用了 _sioClientStatus , 以及 _sioEndpoint.
被这些函数引用 SocketIOTest().
这是这个函数的调用关系图:| void SocketIOTest::onMenuTestEventClicked | ( | cocos2d::Ref * | sender | ) |
在文件 SocketIOTest.cpp 第 245 行定义.
引用了 _sioClient.
被这些函数引用 SocketIOTest().
这是这个函数的调用关系图:| void SocketIOTest::onMenuTestEventEndpointClicked | ( | cocos2d::Ref * | sender | ) |
在文件 SocketIOTest.cpp 第 253 行定义.
引用了 _sioEndpoint.
被这些函数引用 SocketIOTest().
这是这个函数的调用关系图:| void SocketIOTest::onMenuTestMessageClicked | ( | cocos2d::Ref * | sender | ) |
| void SocketIOTest::onMenuTestMessageEndpointClicked | ( | cocos2d::Ref * | sender | ) |
| void SocketIOTest::testevent | ( | cocos2d::network::SIOClient * | client, |
| const std::string & | data | ||
| ) |
Socket.io event handler for custom event "testevent"
在文件 SocketIOTest.cpp 第 116 行定义.
引用了 _sioClientStatus.
被这些函数引用 onMenuSIOClientClicked() , 以及 onMenuSIOEndpointClicked().
这是这个函数的调用关系图:
|
inlineoverridevirtual |
|
protected |
|
protected |
在文件 SocketIOTest.h 第 106 行定义.
被这些函数引用 connect(), disconnect(), echotest(), json(), message(), onClose(), onError(), onMenuTestClientDisconnectClicked(), onMenuTestEndpointDisconnectClicked(), SocketIOTest() , 以及 testevent().
|
protected |