diff options
author | rubidium <rubidium@openttd.org> | 2011-05-04 20:24:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-04 20:24:23 +0000 |
commit | 944a5cb7aafc4d8347c14154e24c05aa00b430c5 (patch) | |
tree | 680f66bd19db54a43ba69772c8627bfaf196ea4e /src/network/network_content.h | |
parent | 14081d91c911d3870e7227770748c10a127bcf5b (diff) | |
download | openttd-944a5cb7aafc4d8347c14154e24c05aa00b430c5.tar.xz |
(svn r22423) -Document: some network stuff
Diffstat (limited to 'src/network/network_content.h')
-rw-r--r-- | src/network/network_content.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/network_content.h b/src/network/network_content.h index 37ce654fe..f9a7fdca1 100644 --- a/src/network/network_content.h +++ b/src/network/network_content.h @@ -19,10 +19,12 @@ /** Vector with content info */ typedef SmallVector<ContentInfo *, 16> ContentVector; +/** Vector with constant content info */ typedef SmallVector<const ContentInfo *, 16> ConstContentVector; /** Iterator for the content vector */ typedef ContentInfo **ContentIterator; +/** Iterator for the constant content vector */ typedef const ContentInfo * const * ConstContentIterator; /** Callbacks for notifying others about incoming data */ @@ -66,7 +68,7 @@ struct ContentCallback { */ class ClientNetworkContentSocketHandler : public NetworkContentSocketHandler, ContentCallback, HTTPCallback { protected: - typedef SmallVector<ContentID, 4> ContentIDList; + typedef SmallVector<ContentID, 4> ContentIDList; ///< List of content IDs to (possibly) select. SmallVector<ContentCallback *, 2> callbacks; ///< Callbacks to notify "the world" ContentIDList requested; ///< ContentIDs we already requested (so we don't do it again) ContentVector infos; ///< All content info we received |