cpp utils files, network and a smal util class
This commit is contained in:
parent
ea3dffdb4a
commit
62f50a2f79
13 changed files with 610 additions and 0 deletions
22
net/socketexception.h
Normal file
22
net/socketexception.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue