From eb299736c1bcb277da1862afe95c11cb897effcf Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Jan 2011 09:53:15 +0000 Subject: (svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n]. --- src/network/core/tcp_content.h | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/network/core/tcp_content.h') 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(); }; -- cgit v1.2.3-54-g00ecf