]> git.tdb.fi Git - libs/net.git/blob - source/net/serversocket.cpp
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / net / serversocket.cpp
1 #include "serversocket.h"
2 #include <msp/core/except.h>
3
4 using namespace std;
5
6 namespace Msp {
7 namespace Net {
8
9 ServerSocket::ServerSocket(Family af, int type, int proto):
10         Socket(af, type, proto)
11 { }
12
13 size_t ServerSocket::do_write(const char *, size_t)
14 {
15         throw unsupported("ServerSocket::write");
16 }
17
18 size_t ServerSocket::do_read(char *, size_t)
19 {
20         throw unsupported("ServerSocket::read");
21 }
22
23 } // namespace Net
24 } // namespace Msp