\section{TPProto::Frame Class Reference}
\label{classTPProto_1_1Frame}\index{TPProto::Frame@{TPProto::Frame}}
\doxyref{Frame}{p.}{classTPProto_1_1Frame} baseclass.  


{\tt \#include $<$frame.h$>$}

Inheritance diagram for TPProto::Frame::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=12cm]{classTPProto_1_1Frame}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf $\sim$Frame} ()\label{classTPProto_1_1Frame_9827d0402b78ce6a2a8007307ee423c8}

\begin{CompactList}\small\item\em Standard virtual default destructor. \item\end{CompactList}\item 
virtual void {\bf pack\-Buffer} ({\bf Buffer} $\ast$buf)=0
\begin{CompactList}\small\item\em Virtual method for packing this \doxyref{Frame}{p.}{classTPProto_1_1Frame} into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. \item\end{CompactList}\item 
virtual bool {\bf unpack\-Buffer} ({\bf Buffer} $\ast$buf)=0
\begin{CompactList}\small\item\em Virtual method for unpacking this \doxyref{Frame}{p.}{classTPProto_1_1Frame} from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. \item\end{CompactList}\item 
void {\bf set\-Protocol\-Version} (int ver)
\begin{CompactList}\small\item\em Sets the protocol version number. \item\end{CompactList}\item 
int {\bf get\-Protocol\-Version} ()
\begin{CompactList}\small\item\em Gets the protocol version number. \item\end{CompactList}\item 
void {\bf set\-Sequence\-Number} (unsigned int seq)
\begin{CompactList}\small\item\em Sets the sequence number to use. \item\end{CompactList}\item 
unsigned int {\bf get\-Sequence\-Number} ()
\begin{CompactList}\small\item\em Gets the sequence number used. \item\end{CompactList}\item 
int {\bf get\-Type} ()
\begin{CompactList}\small\item\em Gets the type number for this frame. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
int {\bf proto\-Ver}\label{classTPProto_1_1Frame_dcc97f5add77bcaecc5776adcac0a7bd}

\begin{CompactList}\small\item\em The protocol version. \item\end{CompactList}\item 
int {\bf seqnum}\label{classTPProto_1_1Frame_ce12ffa91bc08216fd8a36d324d5547a}

\begin{CompactList}\small\item\em The sequence number. \item\end{CompactList}\item 
int {\bf type}
\begin{CompactList}\small\item\em The type of this \doxyref{Frame}{p.}{classTPProto_1_1Frame}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
\doxyref{Frame}{p.}{classTPProto_1_1Frame} baseclass. 

\doxyref{Frame}{p.}{classTPProto_1_1Frame} is the basic message sent to and from the server. It stores the current protocol version number, the sequence number of the frame and the type. 



\subsection{Member Function Documentation}
\index{TPProto::Frame@{TPProto::Frame}!packBuffer@{packBuffer}}
\index{packBuffer@{packBuffer}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void TPProto::Frame::pack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classTPProto_1_1Frame_67b50ee76e90385e56f04202ce1da67e}


Virtual method for packing this \doxyref{Frame}{p.}{classTPProto_1_1Frame} into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. 

This method must be overridden by all subclasses. Some subclasses may make a call to assert(0) if they should not be sent to the server. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to pack into. \end{description}
\end{Desc}


Implemented in {\bf TPProto::Add\-Category} \doxyref{}{p.}{classTPProto_1_1AddCategory_6de24eb8d65b66fe82cc19c87160ac32}, {\bf TPProto::Add\-Design} \doxyref{}{p.}{classTPProto_1_1AddDesign_9d091b9efea75fa50d2b2412f532859e}, {\bf TPProto::Board} \doxyref{}{p.}{classTPProto_1_1Board_c83fffd75c019b731c73b08447045714}, {\bf TPProto::Category} \doxyref{}{p.}{classTPProto_1_1Category_0ef6f6b953cada0269d47c47b4d20928}, {\bf TPProto::Command} \doxyref{}{p.}{classTPProto_1_1Command_e6d8736b9cfd752fc90a6319fdde2aaa}, {\bf TPProto::Command\-Description} \doxyref{}{p.}{classTPProto_1_1CommandDescription_c1d047ad29831b09eb95a6681b1e3995}, {\bf TPProto::Command\-Result} \doxyref{}{p.}{classTPProto_1_1CommandResult_10ba0b7c39516baa168dc3704e41fc94}, {\bf TPProto::Component} \doxyref{}{p.}{classTPProto_1_1Component_d6299d67f245d53435ac182ebeaba429}, {\bf TPProto::Connect} \doxyref{}{p.}{classTPProto_1_1Connect_6cb622d13258e85e0536fe522a1d10ab}, {\bf TPProto::Account\-Create} \doxyref{}{p.}{classTPProto_1_1AccountCreate_c6f490136d4a5c234fbba76b616eb72d}, {\bf TPProto::Design} \doxyref{}{p.}{classTPProto_1_1Design_604b2a14fbc4f58d93d9387cf0f52136}, {\bf TPProto::Fail\-Frame} \doxyref{}{p.}{classTPProto_1_1FailFrame_5ff0b263a905a2ca510433a78af4341b}, {\bf TPProto::Features} \doxyref{}{p.}{classTPProto_1_1Features_e3773833dfbfd09dc01c860fb659dd3c}, {\bf TPProto::Finished\-Frame} \doxyref{}{p.}{classTPProto_1_1FinishedFrame_fd219d8c2e1b882cd1d4aaac6ebaa2cb}, {\bf TPProto::Game\-Info} \doxyref{}{p.}{classTPProto_1_1GameInfo_8237c10e13683843d6498a67b896e276}, {\bf TPProto::Get\-Board\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1GetBoardIdsList_95b89ca4fba530fb20182d4563f22811}, {\bf TPProto::Get\-By\-Id} \doxyref{}{p.}{classTPProto_1_1GetById_ff34a97d5538c05a5a8bef5e991a44aa}, {\bf TPProto::Get\-Category\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1GetCategoryIdsList_e104921d3765994df4a646fa79b37a7c}, {\bf TPProto::Get\-Command\-Types\-List} \doxyref{}{p.}{classTPProto_1_1GetCommandTypesList_c89351802cbf988bc76508751432add8}, {\bf TPProto::Get\-Component\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1GetComponentIdsList_8ec7e78caa051890d4c6afaa848e59bb}, {\bf TPProto::Get\-Design\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1GetDesignIdsList_10cbb137f282c17ce1d37d5889837b05}, {\bf TPProto::Get\-Features} \doxyref{}{p.}{classTPProto_1_1GetFeatures_c2a2eeb243980d689efc2c9c3e21376b}, {\bf TPProto::Get\-Game\-Info} \doxyref{}{p.}{classTPProto_1_1GetGameInfo_9d46f579c0dea644bff72a1df1725953}, {\bf TPProto::Get\-Id\-Sequence} \doxyref{}{p.}{classTPProto_1_1GetIdSequence_976c93d1321c10d2aba7c8b43c91630c}, {\bf TPProto::Get\-Message} \doxyref{}{p.}{classTPProto_1_1GetMessage_29cca28a45ca98247f71ac2d3e61df0b}, {\bf TPProto::Get\-Object\-By\-Pos} \doxyref{}{p.}{classTPProto_1_1GetObjectByPos_27aa7d1006efc2cbeb529b61c60c9920}, {\bf TPProto::Get\-Object\-Ids\-By\-Container} \doxyref{}{p.}{classTPProto_1_1GetObjectIdsByContainer_c438133363d266ec976a496af3d79611}, {\bf TPProto::Get\-Object\-Ids\-By\-Pos} \doxyref{}{p.}{classTPProto_1_1GetObjectIdsByPos_643312103f4b8aebe4d377f88207bd54}, {\bf TPProto::Get\-Object\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1GetObjectIdsList_ae38436707954c34bc57d845d79e5dd3}, {\bf TPProto::Get\-Object\-Types\-List} \doxyref{}{p.}{classTPProto_1_1GetObjectTypesList_aae4e28047ea19014efc66caaf50512f}, {\bf TPProto::Get\-Order} \doxyref{}{p.}{classTPProto_1_1GetOrder_bae746f63bb7eeadc0e3779751539e30}, {\bf TPProto::Get\-Order\-Types\-List} \doxyref{}{p.}{classTPProto_1_1GetOrderTypesList_c6706ff8111fc2bd882b7660da3ce18b}, {\bf TPProto::Get\-Property\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1GetPropertyIdsList_88b1c7c95d1696a4b19589a027e070fd}, {\bf TPProto::Get\-Resource\-Types\-List} \doxyref{}{p.}{classTPProto_1_1GetResourceTypesList_0061923dc4e795c5f6ea2dcc165b0ab8}, {\bf TPProto::Get\-Time} \doxyref{}{p.}{classTPProto_1_1GetTime_0eef2151a36708d1a3a8b523496cc33d}, {\bf TPProto::Id\-Sequence} \doxyref{}{p.}{classTPProto_1_1IdSequence_2255cea6f7cbe7204b6f5a500c6b3448}, {\bf TPProto::Login} \doxyref{}{p.}{classTPProto_1_1Login_cdcc1a69f060ae97a06c5fb07010578f}, {\bf TPProto::Log\-Message} \doxyref{}{p.}{classTPProto_1_1LogMessage_be31555fa966285541b47c6e0ed0665f}, {\bf TPProto::Message} \doxyref{}{p.}{classTPProto_1_1Message_c750ceef3abb2e76aa745df0b6179bbe}, {\bf TPProto::Modify\-Design} \doxyref{}{p.}{classTPProto_1_1ModifyDesign_6a970961b7103df9c9df5c0995a9e07c}, {\bf TPProto::Object} \doxyref{}{p.}{classTPProto_1_1Object_945ab34f60ac1f05aefc30e1ab2daa18}, {\bf TPProto::Object\-Description} \doxyref{}{p.}{classTPProto_1_1ObjectDescription_1a584541f440df0639f192eed36a7be0}, {\bf TPProto::Ok\-Frame} \doxyref{}{p.}{classTPProto_1_1OkFrame_a1e0e213934fd1478a6c3f9609f0f1e0}, {\bf TPProto::Order} \doxyref{}{p.}{classTPProto_1_1Order_3e9bd7bb7ff5918b9dfe638116a3bd0b}, {\bf TPProto::Order\-Description} \doxyref{}{p.}{classTPProto_1_1OrderDescription_864d8b5d1f2e83dbcf78dedf9737f65b}, {\bf TPProto::Ping} \doxyref{}{p.}{classTPProto_1_1Ping_6830e6806958773c6996574f19f706c4}, {\bf TPProto::Player} \doxyref{}{p.}{classTPProto_1_1Player_d956a3b1958febf80225ea147544f452}, {\bf TPProto::Probe\-Order} \doxyref{}{p.}{classTPProto_1_1ProbeOrder_e0a863cb21217ab1fa32517dee1123f6}, {\bf TPProto::Property} \doxyref{}{p.}{classTPProto_1_1Property_b85a35b6cd2fdc87eb1e4bf275362d5b}, {\bf TPProto::Redirect} \doxyref{}{p.}{classTPProto_1_1Redirect_af69d31aad9bc46703517ad91d6d916e}, {\bf TPProto::Remove\-Category} \doxyref{}{p.}{classTPProto_1_1RemoveCategory_8fecdfd597cf9e176cfe6c2610f55d9c}, {\bf TPProto::Remove\-Design} \doxyref{}{p.}{classTPProto_1_1RemoveDesign_c7ca92e5281de00109e32d800c6445c0}, {\bf TPProto::Remove\-Message} \doxyref{}{p.}{classTPProto_1_1RemoveMessage_211d73b3bb7262a335977ff5bf2cc1c3}, {\bf TPProto::Remove\-Order} \doxyref{}{p.}{classTPProto_1_1RemoveOrder_639e98de75ff1a9043f75d56e1222ad0}, {\bf TPProto::Resource\-Description} \doxyref{}{p.}{classTPProto_1_1ResourceDescription_1513a6c82ea4c8ba65acc5f9263a16c8}, {\bf TPProto::Sequence} \doxyref{}{p.}{classTPProto_1_1Sequence_b2d5994c30d473079caecc9e87602ca1}, {\bf TPProto::Set\-Filters} \doxyref{}{p.}{classTPProto_1_1SetFilters_bc69c473f4b201cda426a7a79a368bf0}, and {\bf TPProto::Time\-Remaining} \doxyref{}{p.}{classTPProto_1_1TimeRemaining_ac4deba3f5d385afed70dbf653277e94}.\index{TPProto::Frame@{TPProto::Frame}!unpackBuffer@{unpackBuffer}}
\index{unpackBuffer@{unpackBuffer}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TPProto::Frame::unpack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classTPProto_1_1Frame_fe220a4229f471a3cc6a143f7a27e321}


Virtual method for unpacking this \doxyref{Frame}{p.}{classTPProto_1_1Frame} from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. 

This method must be overridden by all subclasses. Some subclasses may always return false if they should never be received from the server. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to unpack out of. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]True if successfully unpacked, false otherwise. \end{Desc}


Implemented in {\bf TPProto::Add\-Category} \doxyref{}{p.}{classTPProto_1_1AddCategory_d60a348f0e5f9b23efbec533a38f19b9}, {\bf TPProto::Add\-Design} \doxyref{}{p.}{classTPProto_1_1AddDesign_6d2fbb04ccf8b5534f35d71924b6ef14}, {\bf TPProto::Board} \doxyref{}{p.}{classTPProto_1_1Board_23c2fdfb2def94c957fa31808f3d109f}, {\bf TPProto::Board\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1BoardIdsList_402a22576d6caf410eb25c8f1524ac3e}, {\bf TPProto::Category} \doxyref{}{p.}{classTPProto_1_1Category_82cdcba73f17caf09defd856f8b0e3fc}, {\bf TPProto::Category\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1CategoryIdsList_8657bea9358efff3447d391330942ca1}, {\bf TPProto::Command} \doxyref{}{p.}{classTPProto_1_1Command_60f7322de54935491e50e81a36bf9c79}, {\bf TPProto::Command\-Description} \doxyref{}{p.}{classTPProto_1_1CommandDescription_805ab153380112de2d59bef6362ced1e}, {\bf TPProto::Command\-Result} \doxyref{}{p.}{classTPProto_1_1CommandResult_4b7c0d3f826128ec11baa60a6b064ce9}, {\bf TPProto::Command\-Types\-List} \doxyref{}{p.}{classTPProto_1_1CommandTypesList_46f6792fa90d349869073703c8ebd7e0}, {\bf TPProto::Component} \doxyref{}{p.}{classTPProto_1_1Component_1493a86d5bd7328ca89e0e704d521f2d}, {\bf TPProto::Component\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1ComponentIdsList_776c94c0a6f72d8d0590793b6bfaf139}, {\bf TPProto::Connect} \doxyref{}{p.}{classTPProto_1_1Connect_d45e037cf76dab6d511f049be1956f0a}, {\bf TPProto::Account\-Create} \doxyref{}{p.}{classTPProto_1_1AccountCreate_e9376d9776bddf6d7ceb8d3ac5632c40}, {\bf TPProto::Design} \doxyref{}{p.}{classTPProto_1_1Design_8b93b864bdbe067cc2fa76452fe8f026}, {\bf TPProto::Design\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1DesignIdsList_fe69eb24009509394cb788f4a887269c}, {\bf TPProto::Fail\-Frame} \doxyref{}{p.}{classTPProto_1_1FailFrame_e38facc648c8bcad1026736ca7180a0a}, {\bf TPProto::Features} \doxyref{}{p.}{classTPProto_1_1Features_54a94f30d3f861bf64e0f5a606d0249b}, {\bf TPProto::Finished\-Frame} \doxyref{}{p.}{classTPProto_1_1FinishedFrame_1a1bd196938bb63bc9e16dd5ab2b2c96}, {\bf TPProto::Fleet} \doxyref{}{p.}{classTPProto_1_1Fleet_8433094066474256b55e8ad706f44654}, {\bf TPProto::Game\-Info} \doxyref{}{p.}{classTPProto_1_1GameInfo_5e4a750a8848be5901d06bb94292b009}, {\bf TPProto::Get\-By\-Id} \doxyref{}{p.}{classTPProto_1_1GetById_151be30e650bb2f68cd6b95f3c9d07c1}, {\bf TPProto::Get\-Features} \doxyref{}{p.}{classTPProto_1_1GetFeatures_f78a03d1a90456dc7e99a26e68407170}, {\bf TPProto::Get\-Game\-Info} \doxyref{}{p.}{classTPProto_1_1GetGameInfo_02c0ff80d2e4da18adb253a84d796a39}, {\bf TPProto::Get\-Id\-Sequence} \doxyref{}{p.}{classTPProto_1_1GetIdSequence_0382eac8969effea0e9493b1e0c8b328}, {\bf TPProto::Get\-Message} \doxyref{}{p.}{classTPProto_1_1GetMessage_eb279fb610397d6a484dd94c88b64a6d}, {\bf TPProto::Get\-Object\-By\-Pos} \doxyref{}{p.}{classTPProto_1_1GetObjectByPos_2c1ff10b0fdb03641cc533b95ad528be}, {\bf TPProto::Get\-Object\-Ids\-By\-Container} \doxyref{}{p.}{classTPProto_1_1GetObjectIdsByContainer_ce3e8ccc5223341b8f53eb57b12da51b}, {\bf TPProto::Get\-Object\-Ids\-By\-Pos} \doxyref{}{p.}{classTPProto_1_1GetObjectIdsByPos_af8c7d7dd00fa7e2656a16c3efd87388}, {\bf TPProto::Get\-Order} \doxyref{}{p.}{classTPProto_1_1GetOrder_d3cb3ef6362a23c94b48e9918470ebda}, {\bf TPProto::Get\-Time} \doxyref{}{p.}{classTPProto_1_1GetTime_fb7653f9ed948042b935e3b903384b21}, {\bf TPProto::Id\-Sequence} \doxyref{}{p.}{classTPProto_1_1IdSequence_742f69ba2a1d6cc0dde3c2c879faba2f}, {\bf TPProto::Login} \doxyref{}{p.}{classTPProto_1_1Login_d9317e8a5625e42118a2607167a67b7f}, {\bf TPProto::Log\-Message} \doxyref{}{p.}{classTPProto_1_1LogMessage_18a9dcc5b50066d1952e70505a675a76}, {\bf TPProto::Message} \doxyref{}{p.}{classTPProto_1_1Message_ba3cfc6611534f56dc2a92b01e6a577e}, {\bf TPProto::Modify\-Design} \doxyref{}{p.}{classTPProto_1_1ModifyDesign_3fd75d3ad9e0e3ebe70596f317404a29}, {\bf TPProto::Object} \doxyref{}{p.}{classTPProto_1_1Object_d43ddace5d2485661818e62a044ce2d0}, {\bf TPProto::Object\-Description} \doxyref{}{p.}{classTPProto_1_1ObjectDescription_5074ecb2264dc9ee5dabc655275adacf}, {\bf TPProto::Object\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1ObjectIdsList_14120d7d2a7a250f67b8051e7c24477f}, {\bf TPProto::Object\-Types\-List} \doxyref{}{p.}{classTPProto_1_1ObjectTypesList_6faa2105397feff53f9d429182f12634}, {\bf TPProto::Ok\-Frame} \doxyref{}{p.}{classTPProto_1_1OkFrame_0d8a6a5ccebf45fe0fd91b3a461cb647}, {\bf TPProto::Order} \doxyref{}{p.}{classTPProto_1_1Order_00e1b6729e0bcec81c51e63070121110}, {\bf TPProto::Order\-Description} \doxyref{}{p.}{classTPProto_1_1OrderDescription_94e142d86412b55568479ae1d3fd48a9}, {\bf TPProto::Order\-Types\-List} \doxyref{}{p.}{classTPProto_1_1OrderTypesList_7b0f515b52cac7ad75e3eb9d0ddad4ae}, {\bf TPProto::Ping} \doxyref{}{p.}{classTPProto_1_1Ping_cec5614cdf33d26e76de2eede69fcbed}, {\bf TPProto::Planet} \doxyref{}{p.}{classTPProto_1_1Planet_4523415e7568573409d3f1cc9324cb8d}, {\bf TPProto::Player} \doxyref{}{p.}{classTPProto_1_1Player_88e1235b839e8addd784e3248021cfd7}, {\bf TPProto::Probe\-Order} \doxyref{}{p.}{classTPProto_1_1ProbeOrder_9c97e6ce09a863c62b5437f3f4a19079}, {\bf TPProto::Property} \doxyref{}{p.}{classTPProto_1_1Property_5be0fd88c0a24d5e8a2790581cfdd9c1}, {\bf TPProto::Property\-Ids\-List} \doxyref{}{p.}{classTPProto_1_1PropertyIdsList_fcea7a25e5b6b3d3d712a795b2e3bab2}, {\bf TPProto::Redirect} \doxyref{}{p.}{classTPProto_1_1Redirect_6b2aba97e152b6bdc7ad1f3b800899dd}, {\bf TPProto::Remove\-Category} \doxyref{}{p.}{classTPProto_1_1RemoveCategory_0515aabfb197786ff7b63a41a2284f89}, {\bf TPProto::Remove\-Design} \doxyref{}{p.}{classTPProto_1_1RemoveDesign_e6e8828c04a4e75cfedddb73d4ae882a}, {\bf TPProto::Remove\-Message} \doxyref{}{p.}{classTPProto_1_1RemoveMessage_d970773d79cb82130a324fa973b134a0}, {\bf TPProto::Remove\-Order} \doxyref{}{p.}{classTPProto_1_1RemoveOrder_e5df039b0a145cf505983b6d21122c9e}, {\bf TPProto::Resource\-Description} \doxyref{}{p.}{classTPProto_1_1ResourceDescription_824271a0d1a264c3ab7e3a835f6c295d}, {\bf TPProto::Resource\-Types\-List} \doxyref{}{p.}{classTPProto_1_1ResourceTypesList_29196fb78f2586a5b8006c9ec50fbd5e}, {\bf TPProto::Sequence} \doxyref{}{p.}{classTPProto_1_1Sequence_6a210b72072f90d843b5c83ca707b4df}, {\bf TPProto::Set\-Filters} \doxyref{}{p.}{classTPProto_1_1SetFilters_4d9c5b6b91313a2960244f17b910012d}, {\bf TPProto::Time\-Remaining} \doxyref{}{p.}{classTPProto_1_1TimeRemaining_85545ca3c97c385f8cf43f9762e7523d}, and {\bf TPProto::Universe} \doxyref{}{p.}{classTPProto_1_1Universe_5170a7cad9ee2a2036a1e840b5f51271}.\index{TPProto::Frame@{TPProto::Frame}!setProtocolVersion@{setProtocolVersion}}
\index{setProtocolVersion@{setProtocolVersion}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Frame::set\-Protocol\-Version (int {\em ver})}\label{classTPProto_1_1Frame_3caf135e63b5992a633981b47f2d893d}


Sets the protocol version number. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ver}]The version number to use. \end{description}
\end{Desc}
\index{TPProto::Frame@{TPProto::Frame}!getProtocolVersion@{getProtocolVersion}}
\index{getProtocolVersion@{getProtocolVersion}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int TPProto::Frame::get\-Protocol\-Version ()}\label{classTPProto_1_1Frame_e20af2c604fdcbbf0c0590568a3c4fbb}


Gets the protocol version number. 

\begin{Desc}
\item[Returns:]The version number. \end{Desc}
\index{TPProto::Frame@{TPProto::Frame}!setSequenceNumber@{setSequenceNumber}}
\index{setSequenceNumber@{setSequenceNumber}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Frame::set\-Sequence\-Number (unsigned int {\em seq})}\label{classTPProto_1_1Frame_c1f05e9fa817ee55f734f1ee863b6c6b}


Sets the sequence number to use. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em seq}]The sequence number. \end{description}
\end{Desc}
\index{TPProto::Frame@{TPProto::Frame}!getSequenceNumber@{getSequenceNumber}}
\index{getSequenceNumber@{getSequenceNumber}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned int TPProto::Frame::get\-Sequence\-Number ()}\label{classTPProto_1_1Frame_8ab7c8b3d5ec5565b8ff3d795e3360f5}


Gets the sequence number used. 

\begin{Desc}
\item[Returns:]The sequence number. \end{Desc}
\index{TPProto::Frame@{TPProto::Frame}!getType@{getType}}
\index{getType@{getType}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int TPProto::Frame::get\-Type ()}\label{classTPProto_1_1Frame_1f04706dffcf2d61b5a45a00f93f9b84}


Gets the type number for this frame. 

This value should be in the Frame\-Type enum. \begin{Desc}
\item[Returns:]The type of this frame. \end{Desc}


\subsection{Member Data Documentation}
\index{TPProto::Frame@{TPProto::Frame}!type@{type}}
\index{type@{type}!TPProto::Frame@{TPProto::Frame}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf TPProto::Frame::type}\hspace{0.3cm}{\tt  [protected]}}\label{classTPProto_1_1Frame_284aa4934bcca3a8752dbf7013bbffef}


The type of this \doxyref{Frame}{p.}{classTPProto_1_1Frame}. 

Should always be in the Frame\-Type enum. 

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
tpproto/{\bf frame.h}\item 
tpproto/frame.cpp\end{CompactItemize}
