summaryrefslogtreecommitdiffstats
path: root/qnetchess/src/gamesocket.h
blob: 6377472140fab2c074a5f503590dc165ed898698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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__ */