Added helper class for receiving data. Modified sender thread to support sending partial packets. Prepared abstractions for server state machine.
This commit is contained in:
@@ -21,20 +21,16 @@
|
||||
#ifndef _CLIENTEXCEPTION_H_
|
||||
#define _CLIENTEXCEPTION_H_
|
||||
|
||||
#include <net/netexception.h>
|
||||
|
||||
class ClientException
|
||||
class ClientException : public NetException
|
||||
{
|
||||
public:
|
||||
|
||||
ClientException(int errorId, int osErrorCode)
|
||||
: m_errorId(errorId), m_osErrorCode(osErrorCode) {}
|
||||
: NetException(errorId, osErrorCode) {}
|
||||
|
||||
int GetErrorId() const {return m_errorId;}
|
||||
int GetOsErrorCode() const {return m_osErrorCode;}
|
||||
|
||||
private:
|
||||
int m_errorId;
|
||||
int m_osErrorCode;
|
||||
virtual ~ClientException();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user