summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_content.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-22 09:53:15 +0000
committerrubidium <rubidium@openttd.org>2011-01-22 09:53:15 +0000
commiteb299736c1bcb277da1862afe95c11cb897effcf (patch)
tree3bb6bff78f066da770a367e078c569dbe8ce319a /src/network/core/tcp_content.h
parent0cdb1c78cdbfce4d426441c21ef7066f1cfecf6f (diff)
downloadopenttd-eb299736c1bcb277da1862afe95c11cb897effcf.tar.xz
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
Diffstat (limited to 'src/network/core/tcp_content.h')
-rw-r--r--src/network/core/tcp_content.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/network/core/tcp_content.h b/src/network/core/tcp_content.h
index 048ce3da3..07b7faa10 100644
--- a/src/network/core/tcp_content.h
+++ b/src/network/core/tcp_content.h
@@ -82,30 +82,13 @@ struct ContentInfo {
State state; ///< Whether the content info is selected (for download)
bool upgrade; ///< This item is an upgrade
- /** Clear everything in the struct */
ContentInfo();
-
- /** Free everything allocated */
~ContentInfo();
void TransferFrom(ContentInfo *other);
- /**
- * Get the size of the data as send over the network.
- * @return the size.
- */
size_t Size() const;
-
- /**
- * Is the state either selected or autoselected?
- * @return true iff that's the case
- */
bool IsSelected() const;
-
- /**
- * Is the information from this content info valid?
- * @return true iff it's valid
- */
bool IsValid() const;
};
@@ -187,12 +170,6 @@ protected:
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_SERVER_CONTENT);
- /**
- * Handle the given packet, i.e. pass it to the right
- * parser receive command.
- * @param p the packet to handle
- * @return true if we should immediately handle further packets, false otherwise
- */
bool HandlePacket(Packet *p);
public:
/**
@@ -209,7 +186,6 @@ public:
/** On destructing of this class, the socket needs to be closed */
virtual ~NetworkContentSocketHandler() { this->Close(); }
- /** Do the actual receiving of packets. */
void ReceivePackets();
};