]> git.tdb.fi Git - libs/net.git/blobdiff - source/serversocket.cpp
Add ClientSocket and ServerSocket abstractions
[libs/net.git] / source / serversocket.cpp
diff --git a/source/serversocket.cpp b/source/serversocket.cpp
new file mode 100644 (file)
index 0000000..6028483
--- /dev/null
@@ -0,0 +1,23 @@
+#include "serversocket.h"
+
+using namespace std;
+
+namespace Msp {
+namespace Net {
+
+ServerSocket::ServerSocket(Family af, int type, int proto):
+       Socket(af, type, proto)
+{ }
+
+unsigned ServerSocket::do_write(const char *, unsigned)
+{
+       throw logic_error("can't write to ServerSocket");
+}
+
+unsigned ServerSocket::do_read(char *, unsigned)
+{
+       throw logic_error("can't read from ServerSocket");
+}
+
+} // namespace Net
+} // namespace Msp