cpp utils files, network and a smal util class

This commit is contained in:
Ziver Koc 2009-11-21 01:11:05 +00:00
parent ea3dffdb4a
commit 62f50a2f79
13 changed files with 610 additions and 0 deletions

22
net/socketexception.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef SOCKETEXCEPTION
#define SOCKETEXCEPTION
#include <string>
using namespace std;
namespace zutil{
class SocketException{
public:
SocketException(const string &s ) : msg(s) {};
~SocketException(){};
string description() const{
return msg;
}
private:
const string msg;
};
}
#endif