+#include <msp/core/except.h>
#include "serversocket.h"
using namespace std;
Socket(af, type, proto)
{ }
-unsigned ServerSocket::do_write(const char *, unsigned)
+size_t ServerSocket::do_write(const char *, size_t)
{
- throw logic_error("can't write to ServerSocket");
+ throw unsupported("ServerSocket::write");
}
-unsigned ServerSocket::do_read(char *, unsigned)
+size_t ServerSocket::do_read(char *, size_t)
{
- throw logic_error("can't read from ServerSocket");
+ throw unsupported("ServerSocket::read");
}
} // namespace Net