![]() |
||||||||
|
|
||||||||
An application must derive all methods provided in this interface and register the instance of this class with the node in question.
Returning 'false' in one of these callbacks does not influence the behaviour of the node in any way. The only difference is that the event, for which 'false' is returned, won't be available through the normal event interface(ZCom_Node::getNextEvent()) anymore. So if you prefer to handle node events through callbacks instead of polling, register an event interceptor and return 'false' in all of the callbacks. If you return 'true', the events will stack up in the node's eventqueue until the node is deleted or the events are fetched with ZCom_Node::getNextEvent().
Public Member Functions | |
| virtual ZCOM_API bool | recFileAborted (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole, ZCom_FileTransID _fid)=0 |
| The node received a filetransfer abortion notification. | |
| virtual ZCOM_API bool | recFileComplete (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole, ZCom_FileTransID _fid)=0 |
| The node received a filetransfer completion notification. | |
| virtual ZCOM_API bool | recFileData (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole, ZCom_FileTransID _fid)=0 |
| The node received a chunk of filedata. | |
| virtual ZCOM_API bool | recFileIncoming (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole, ZCom_FileTransID _fid, ZCom_BitStream &_request)=0 |
| A remote node wants to send a file. | |
| virtual ZCOM_API bool | recInit (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole)=0 |
| A remote node has linked up with our node. | |
| virtual ZCOM_API bool | recRemoved (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole)=0 |
| A remote node has unlinked from our node. | |
| virtual ZCOM_API bool | recSyncRequest (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole)=0 |
| A remote node has linked up with our node and ZCom_Node::setMustSync() is enabled. | |
| virtual ZCOM_API bool | recUserEvent (ZCom_Node *_node, ZCom_ConnID _from, eZCom_NodeRole _remoterole, ZCom_BitStream &_data, zU32 _estimated_time_sent)=0 |
| An application generated event has been received. | |
|
||||||||||||||||||||||||
|
An application generated event has been received.
|
|
||||||||||||||||
|
A remote node has linked up with our node.
|
|
||||||||||||||||
|
A remote node has linked up with our node and ZCom_Node::setMustSync() is enabled.
|
|
||||||||||||||||
|
A remote node has unlinked from our node.
|
|
||||||||||||||||||||||||
|
A remote node wants to send a file.
|
|
||||||||||||||||||||
|
The node received a chunk of filedata.
|
|
||||||||||||||||||||
|
The node received a filetransfer abortion notification.
|
|
||||||||||||||||||||
|
The node received a filetransfer completion notification.
|
1.4.6-NO