summaryrefslogtreecommitdiffstats
path: root/qnetchess/src/gamesocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qnetchess/src/gamesocket.cpp')
-rw-r--r--qnetchess/src/gamesocket.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/qnetchess/src/gamesocket.cpp b/qnetchess/src/gamesocket.cpp
new file mode 100644
index 00000000..b3dc2fe5
--- /dev/null
+++ b/qnetchess/src/gamesocket.cpp
@@ -0,0 +1,33 @@
+/*
+ * $Id: gamesocket.cpp,v 0.1 2005/01/08 12:31:24 denis Exp $
+ *
+ * Author: Denis Kozadaev (denis@tambov.ru)
+ * Description:
+ *
+ * See also: style(9)
+ *
+ * Hacked by:
+ */
+
+#include <ntqsocket.h>
+
+#include "gamesocket.h"
+
+GameSocket::GameSocket(TQObject *parent, const char *name)
+ :TQServerSocket(GAME_PORT, GAME_BACKLOG, parent, name)
+{
+}
+
+GameSocket::~GameSocket()
+{
+}
+
+
+void
+GameSocket::newConnection(int sock)
+{
+
+ emit acceptConnection(sock);
+}
+
+#include "gamesocket.moc"