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,39 @@
|
||||
|
||||
|
||||
#ifndef _SendBuffer_h_
|
||||
#define _SendBuffer_h_
|
||||
|
||||
#include "ioPortalHelp.h"
|
||||
|
||||
class SendBuffer
|
||||
{
|
||||
private:
|
||||
char m_pBuffer[MAX_BUFFER + MAX_TEMP_BUFF];
|
||||
char *m_pStart;
|
||||
char *m_pEnd;
|
||||
|
||||
int m_iRestCnt;
|
||||
bool m_bBlock;
|
||||
|
||||
public:
|
||||
void InitBuffer();
|
||||
void ClearBuffer();
|
||||
|
||||
public:
|
||||
bool EnqueueData( const char *pData, int iPacketSize ); // return : Can Now Send ?
|
||||
int DequeueData( int iTransfered );
|
||||
|
||||
public:
|
||||
int GetRestCnt();
|
||||
char* GetQueuePtr() const;
|
||||
|
||||
public:
|
||||
void SetBlock( bool bBlock );
|
||||
bool IsBlocked() const;
|
||||
|
||||
public:
|
||||
SendBuffer();
|
||||
~SendBuffer();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user