~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/plugins/generic/chess/gamesocket.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2005 by SilverSoft.Net
 
3
 * All rights reserved
 
4
 *
 
5
 * $Id: gamesocket.cpp,v 0.1 2005/01/08 12:31:24 denis Exp $
 
6
 *
 
7
 * Author: Denis Kozadaev (denis@silversoft.net)
 
8
 * Description:
 
9
 *
 
10
 * See also: style(9)
 
11
 *
 
12
 * Hacked by:
 
13
 */
 
14
 
 
15
#include <q3socket.h>
 
16
 
 
17
#include "gamesocket.h"
 
18
 
 
19
GameSocket::GameSocket(QWidget *parent, const char *name)
 
20
        :Q3ServerSocket(GAME_PORT, GAME_BACKLOG, (QObject *)parent, name)
 
21
{
 
22
}
 
23
 
 
24
GameSocket::~GameSocket()
 
25
{
 
26
}
 
27
 
 
28
 
 
29
void
 
30
GameSocket::newConnection(int sock)
 
31
{
 
32
 
 
33
        emit acceptConnection(sock);
 
34
}
 
35