~ubuntu-branches/ubuntu/raring/lordsawar/raring

« back to all changes in this revision

Viewing changes to src/server/Client.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese, Gonéri Le Bouder
  • Date: 2008-06-17 11:15:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080617111526-yjyvu9df50zmpdo0
Tags: 0.0.9-1
[ Barry deFreese ]
* New upstream release.
  + Fixes gcc-4.3 builds so drop ftbfs_gcc-4.3_fix.diff.
  + Add new build-dependency for libgnet-dev.
* Add simple man page for new lordsawar-tile-editor.
* Add desktop file for lordsawar-tile-editor.
* Remove French translation on install.

[ Gonéri Le Bouder ]
* bump Debian Policy to 3.8.0. No change needed.
* fix wording in the 0.0.8-3 entry of the Debian changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//  This program is free software; you can redistribute it and/or modify
2
 
//  it under the terms of the GNU General Public License as published by
3
 
//  the Free Software Foundation; either version 2 of the License, or
4
 
//  (at your option) any later version.
5
 
//
6
 
//  This program is distributed in the hope that it will be useful,
7
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
8
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9
 
//  GNU Library General Public License for more details.
10
 
//
11
 
//  You should have received a copy of the GNU General Public License
12
 
//  along with this program; if not, write to the Free Software
13
 
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14
 
 
15
 
#include "Client.h"
16
 
//#include "playerlist.h"
17
 
#include <iostream>
18
 
 
19
 
using namespace std;
20
 
 
21
 
#define debug(x) {cerr<<__FILE__<<": "<<__LINE__<<": "<<x<<endl;}
22
 
//#define debug(x)
23
 
 
24
 
Client::Client(std::string host, int port)
25
 
{
26
 
    /*
27
 
    debug("Client(" << host << ", " << port << ")");
28
 
    CPPSocket::Address serverAddress(host, port);
29
 
    open(CPPSocket::Socket::TCP);
30
 
    connect(serverAddress);
31
 
 
32
 
        first = false;
33
 
        already_connected = false;
34
 
    */
35
 
}
36
 
 
37
 
Client::~Client()
38
 
{
39
 
}
40
 
 
41
 
void Client::sendPlayerInfo()
42
 
{
43
 
    debug("sendPlayerInfo()");
44
 
    //CPPSocket::StringBuffer data("PLAYER\nnewName\n");
45
 
    //send(data);
46
 
}
47
 
 
48
 
// End of file