summaryrefslogtreecommitdiffstats
path: root/qnetchess/src/gamesocket.h
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2020-03-28 17:45:12 +0300
committerDenis Kozadaev <denis@dilos.org>2020-03-28 17:45:12 +0300
commitb93fd6da0b9fd56962db2ea64f98da30d5f93538 (patch)
tree9e20e7301f6d6ed7b45750718d6998a0d39e2ced /qnetchess/src/gamesocket.h
parent62af0157e055222214ab132575e41f924e997ff1 (diff)
downloadtdegames-qnetchess.tar.gz
tdegames-qnetchess.zip
Network Chess game for two playersqnetchess
Signed-off-by: Denis Kozadaev <denis@dilos.org>
Diffstat (limited to 'qnetchess/src/gamesocket.h')
-rw-r--r--qnetchess/src/gamesocket.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/qnetchess/src/gamesocket.h b/qnetchess/src/gamesocket.h
new file mode 100644
index 00000000..63774721
--- /dev/null
+++ b/qnetchess/src/gamesocket.h
@@ -0,0 +1,37 @@
+/*
+ * $Id: gamesocket.h,v 0.1 2005/01/08 12:31:24 denis Exp $
+ *
+ * Author: Denis Kozadaev (denis@tambov.ru)
+ * Description:
+ *
+ * See also: style(9)
+ *
+ * Hacked by:
+ */
+
+#ifndef __GAME_SOCKET_H__
+#define __GAME_SOCKET_H__
+
+#include <ntqserversocket.h>
+#include <stdlib.h>
+
+#define GAME_PORT 1345
+#define GAME_BACKLOG 5
+
+class GameSocket:public TQServerSocket
+{
+ Q_OBJECT
+public:
+ GameSocket(TQObject *parent = NULL, const char *name = NULL);
+ ~GameSocket();
+
+private:
+
+protected:
+ void newConnection(int);
+
+signals:
+ void acceptConnection(int);
+};
+
+#endif /* __GAME_SOCKET_H__ */