~ubuntu-branches/ubuntu/natty/spring/natty

« back to all changes in this revision

Viewing changes to rts/System/Net/Connection.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-09-23 18:56:03 UTC
  • mfrom: (3.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100923185603-st97s5chplo42y7w
Tags: 0.82.5.1+dfsg1-1ubuntu1
* Latest upstream version for online play
* debian/control: Replace (rather than conflict) spring-engine
  - spring-engine will be a dummy package (LP: #612905)
  - also set maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
 
2
 
1
3
#ifndef CONNECTION_H
2
4
#define CONNECTION_H
3
5
 
37
39
        virtual boost::shared_ptr<const RawPacket> GetData()=0;
38
40
 
39
41
        virtual void Flush(const bool forced = false)=0;
40
 
        virtual bool CheckTimeout() const = 0;
 
42
        virtual bool CheckTimeout(int nsecs = 0, bool initial = false) const = 0;
41
43
        
 
44
        virtual void ReconnectTo(CConnection &conn) = 0;
 
45
        virtual bool CanReconnect() const = 0;
 
46
        virtual bool NeedsReconnect() = 0;
 
47
 
42
48
        unsigned GetDataReceived() const;
43
49
        
44
50
        virtual std::string Statistics() const = 0;