sockstream.h | sockstream.h | |||
---|---|---|---|---|
skipping to change at line 70 | skipping to change at line 70 | |||
// socket exception classes | // socket exception classes | |||
class sockerr { | class sockerr { | |||
int err; | int err; | |||
string text; | string text; | |||
public: | public: | |||
sockerr (int e, const char *operation = NULL): err (e) { | sockerr (int e, const char *operation = NULL): err (e) { | |||
if (operation != NULL) { | if (operation != NULL) { | |||
text = operation; | text = operation; | |||
} | } | |||
} | } | |||
sockerr (int e, const char *operation, const char *specification) { | sockerr (int e, const char *operation, const char *specification) : err ( e) { | |||
if (operation != NULL) | if (operation != NULL) | |||
text = operation; | text = operation; | |||
if (specification != NULL) { | if (specification != NULL) { | |||
text += "("; | text += "("; | |||
text += specification; | text += specification; | |||
text += ")"; | text += ")"; | |||
} | } | |||
} | } | |||
sockerr (int e, const string &operation): err (e) { | sockerr (int e, const string &operation): err (e) { | |||
text = operation; | text = operation; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||