X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fsocket.h;h=c2c17f07dc2d2f42611bbb818bbf45c920c6c04f;hp=5536146544c3de098993d1af06295caeecd075be;hb=4696a776e2875697ea0d6a733609dd9c37918971;hpb=65b029e8334d4dfc9a6161fc04740b03d56a8e2f diff --git a/source/socket.h b/source/socket.h index 5536146..c2c17f0 100644 --- a/source/socket.h +++ b/source/socket.h @@ -10,6 +10,14 @@ namespace Msp { namespace Net { +class bad_socket_state: public std::logic_error +{ +public: + bad_socket_state(const std::string &w): std::logic_error(w) { } + virtual ~bad_socket_state() throw() { } +}; + + class Socket: public IO::EventObject { protected: