Source Code (Use browser search to find items of interest.)

Class Index

ksirtet'LocalServer (./kdegames/ksirtet/lib/internal.h:88)

class LocalServer : public QObject, public Local, public Server
{
 Q_OBJECT
		
 public:
	LocalServer(MPInterface *_interface,
				QValueList<MPInterface::Data> &_boards, uint _interval);
	
	WritingStream *globalStream() { return &stream; }
	
 private slots:
	void timeoutSlot()           { serverTimeout(); }
	void congestionTimeoutSlot() { congestion(); }
	
 private:
	void timeout() { treatData(); }
};


ksirtet'LocalServer::LocalServer() (./kdegames/ksirtet/lib/internal.cpp:153)

LocalServer::LocalServer(MPInterface *_interface,
						 QValueList<MPInterface::Data> &_boards,
						 uint _interval)
: Local(_interface, _boards), Server(_interval)
{
	connect(&timer, SIGNAL(timeout()), SLOT(timeoutSlot()));
	connect(&ctimer, SIGNAL(timeout()), SLOT(congestionTimeoutSlot()));
	serverTimeout();
}

// NetworkServer implementation

ksirtet'LocalServer::timeout() (./kdegames/ksirtet/lib/internal.h:103)

	void timeout() { treatData(); }
};