Public Member Functions | |
virtual void | OnClientJoin (CNetClientInfo *clientInfo)=0 |
virtual void | OnClientLeave (CNetClientInfo *clientInfo, ErrorInfo *errorinfo, const ByteArray &comment)=0 |
virtual void | OnClientOffline (CRemoteOfflineEventArgs &) |
virtual void | OnClientOnline (CRemoteOnlineEventArgs &) |
virtual bool | OnConnectionRequest (AddrPort, ByteArray &, ByteArray &) |
virtual void | OnP2PGroupJoinMemberAckComplete (HostID groupHostID, HostID memberHostID, ErrorType result)=0 |
virtual void | OnUserWorkerThreadBegin ()=0 |
virtual void | OnUserWorkerThreadEnd ()=0 |
virtual void | OnClientHackSuspected (HostID, HackType) |
virtual void | OnP2PGroupRemoved (HostID) |
Public Member Functions inherited from Proud::INetCoreEvent | |
virtual void | OnError (ErrorInfo *errorInfo)=0 |
virtual void | OnWarning (ErrorInfo *errorInfo)=0 |
virtual void | OnInformation (ErrorInfo *errorInfo)=0 |
virtual void | OnException (const Exception &e)=0 |
virtual void | OnNoRmiProcessed (RmiID rmiID)=0 |
virtual PROUD_API void | OnReceiveUserMessage (HostID sender, const RmiContext &rmiContext, uint8_t *payload, int payloadLength) |
virtual void | OnTick (void *) |
virtual void | OnUserWorkerThreadCallbackBegin (CUserWorkerThreadCallbackContext *) |
virtual void | OnUserWorkerThreadCallbackEnd (CUserWorkerThreadCallbackContext *) |
TODO:translate needed. This method is called when there is suspicion that the client has been hacked.
clinetID | HostID of the client under suspicion |
hackType | Type of hacking. |
|
pure virtual |
Event that occurs when client attempts to connect
clientInfo | client requested to connect |
|
pure virtual |
Event that occurs when client terminates connection
clientInfo | client info that is disconnected |
errorInfo | disconnection info of client that is disconneced ErrorInfo.m_type value shows how disconnection processed Please refer ErrorInfo help section. |
comment | text string sent by client via parameter comment of CNetClient.Disconnect |
|
inlinevirtual |
A callback occurs when the client is disconnected. A callback occurs for OnClientLeave if reconnection does not occur. (The particular function shall have NetConnectionParam.m_enableAutoConnectionRecovery of NetClient as “True”)
ars | It contains information on a disconnected client. |
|
inlinevirtual |
A callback occurs when the client is disconnected and then reconnected. (The particular function shall have NetConnectionParam.m_enableAutoConnectionRecovery of NetClient as “True”)
args | It contains information on a reconnected client. |
|
inlinevirtual |
Event called back when client attempts to connect to server for the first time
Note
clientAddr | Internet address of client |
userDataFromClient | The custom data from client This value is the value that was entered at parameter CNetConnectionParam::m_userData when client was connected to server. |
reply | If this event callback fills a value to this field then client will receive the result of connection to server from INetClientEvent::OnJoinServerComplete. |
|
pure virtual |
The event that occurs when the process adding a new member to P2P Group is completed in all client
groupHostID | HostId of group |
memberHostID | HostID of group member |
result | If ErrorType_Ok then it means successfully added, if ErrorType_AlreadyExists then it is a member that already in group. (does not mean it falied to) If has other values then it means failed to add. For an example, Case1. Calling CNetServer.LeaveP2PGroup or CNetServer.DestroyP2PGroup between the moment after calling CNetServer.CreateP2PGroup or CNetServer.JoinP2PGroup and the moment before this callback occurs, OR Case2. the client was terminating its connection to server at the same time, For each case, an other value can enter here. |
|
inlinevirtual |
This method is called right after P2P group is removed.
|
pure virtual |
This method is called when thread of user work thread pool starts.
|
pure virtual |
This method is called when thread of user work thread pool terminates.