protocol for ZFWebSocket More...
#include <ZFProtocolZFWebSocket.h>
Public Member Functions | |
| virtual const zfchar * | protocolName (void) const |
| get the name of the protocol module, e.g. "ZFObject" | |
| virtual void * | open (ZFWebSocket *owner, const zfstring &url)=0 |
| see ZFWebSocket::open | |
| virtual void | close (ZFWebSocket *owner, void *nativeWebSocket)=0 |
| see ZFWebSocket::close | |
| virtual void | send (ZFWebSocket *owner, void *nativeWebSocket, const void *data, zfindex size)=0 |
| see ZFWebSocket::close | |
| virtual void | sendBin (ZFWebSocket *owner, void *nativeWebSocket, const void *data, zfindex size)=0 |
| see ZFWebSocket::close | |
| virtual void | notifyOnOpen (ZFWebSocket *owner) |
| implementation must notify when connection opened | |
| virtual void | notifyOnClose (ZFWebSocket *owner, ZFResultType result, const zfstring &reasonHint) |
| implementation must notify when connection closed | |
| virtual void | notifyOnRecv (ZFWebSocket *owner, const zfstring &data) |
| implementation must notify when recv data | |
| virtual void | notifyOnRecvBin (ZFWebSocket *owner, const zfstring &data) |
| implementation must notify when recv data | |
Public Member Functions inherited from ZFProtocol | |
| virtual void | protocolOnInit (void) |
| called to init the protocol | |
| virtual void | protocolOnInitFinish (void) |
| see protocolOnInit | |
| virtual void | protocolOnDeallocPrepare (void) |
| see protocolOnInit | |
| virtual void | protocolOnDealloc (void) |
| see protocolOnInit | |
| virtual ZFProtocolInstanceState | protocolInstanceState (void) |
| protocol instance's state | |
| virtual const zfchar * | protocolImplName (void) const |
| get the name of the protocol implementation, e.g. "ZFObject_default" | |
| virtual ZFProtocolLevel | protocolImplLevel (void) const |
| get the level of the protocol implementation | |
| virtual const zfchar * | protocolImplPlatformHint (void) const |
| get type hint of the implementation or empty string if not defined, e.g. "iOS:NSString" for iOS's string impl, use ZFPROTOCOL_IMPLEMENTATION_PLATFORM_HINT to register | |
| virtual void | objectInfoT (zfstring &ret) const |
| see objectInfo | |
| virtual zfstring | objectInfo (void) const |
| get a short info about this object | |
Protected Types | |
| typedef ZFProtocol | zfsuper |
| class ref to super | |
| typedef ZFPInterface_ZFWebSocket | zfself |
| class ref to self | |
protocol for ZFWebSocket
|
inlinevirtual |
get the name of the protocol module, e.g. "ZFObject"
Reimplemented from ZFProtocol.