X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fserversocket.cpp;h=66876c534fcbf73e2317527b95eb03554a034174;hb=HEAD;hp=60284837b1b91b5a95f6e98f9bcc9c6f3c4b40c0;hpb=50e9f9ea7f7385a2c5931fca2b8fb1103078e67c;p=libs%2Fnet.git diff --git a/source/net/serversocket.cpp b/source/net/serversocket.cpp index 6028483..66876c5 100644 --- a/source/net/serversocket.cpp +++ b/source/net/serversocket.cpp @@ -1,4 +1,5 @@ #include "serversocket.h" +#include using namespace std; @@ -9,14 +10,14 @@ ServerSocket::ServerSocket(Family af, int type, int proto): 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