summaryrefslogtreecommitdiffstats
path: root/qnetchess/src/gamesocket.h
diff options
context:
space:
mode:
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__ */