forked from LosaDev/ls-2019-source
LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "ioCSocketUDP.h"
|
||||
#include "network/NetworkSecurity.h"
|
||||
|
||||
class ioClientSocketUDP : public ioCSocketUDP
|
||||
{
|
||||
public:
|
||||
ioClientSocketUDP(void);
|
||||
~ioClientSocketUDP(void);
|
||||
|
||||
void Init();
|
||||
void Destroy();
|
||||
|
||||
public:
|
||||
void OnConnect();
|
||||
void OnDisconnect();
|
||||
void OnSend();
|
||||
void OnReceive(char* buffer, int& length);
|
||||
|
||||
void BeforeSend(CPacket &rkPacket);
|
||||
void AfterSend(CPacket &rkPacket);
|
||||
BOOL SendPacket(CPacket &rkPacket);
|
||||
|
||||
BOOL CheckNS( CPacket &rkPacket );
|
||||
void SetNS(NetworkSecurity* ns) { m_NS = ns; }
|
||||
|
||||
protected:
|
||||
NetworkSecurity *m_NS;
|
||||
};
|
||||
Reference in new issue
Block a user