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:
lotodore
2007-03-13 02:23:12 +00:00
parent 29b29ec42e
commit f5289a6fcf
24 changed files with 508 additions and 70 deletions
+4 -8
View File
@@ -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