You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
582 B
38 lines
582 B
/*
|
|
* $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__ */
|