\doxysection{com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+raw.\+Raw\+Packet Class Reference}
\hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket}{}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket}\index{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}}
Inheritance diagram for com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+raw.\+Raw\+Packet\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a9f5657d3849d231fbac7db3ebf74965c}{set\+Payload}} (byte\mbox{[}$\,$\mbox{]} payload, int payload\+Size)
\begin{DoxyCompactList}\small\item\em Sets the payload to be wrapped in the packet. \end{DoxyCompactList}\item 
byte\mbox{[}$\,$\mbox{]} \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a1748196fc30e30074a9c7c1086f61349}{get\+Data}} ()
\begin{DoxyCompactList}\small\item\em Gets the packet raw data. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a4db40113df9eb92267c9eae694bafa5f}{get\+Length}} ()
\begin{DoxyCompactList}\small\item\em Gets the size of the entire packet (payload size + header size) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a40999af186f7089da1812ab6071fbd35}{set\+Payload\+Size}} (int payload\+Size)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Represents the most simple form of a packet, no headers, simply a payload. To be optimal, the size of the payload needs to be known before creating the packet. Otherwise, the packet size is readjusted to be large enough for the payload.

This is typically used when receiving packets and transfering to the server without any modification. 

\doxysubsection{Member Function Documentation}
\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a1748196fc30e30074a9c7c1086f61349}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a1748196fc30e30074a9c7c1086f61349} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}!getData@{getData}}
\index{getData@{getData}!com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}}
\doxysubsubsection{\texorpdfstring{getData()}{getData()}}
{\footnotesize\ttfamily byte\mbox{[}$\,$\mbox{]} com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+raw.\+Raw\+Packet.\+get\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Gets the packet raw data. 

Typically used to send the bytes to a socket after constructing it and setting the various header fields / payload. 

Implements \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1Packet_a57eeb6e9b0730d1307755b814d62f129}{com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+Packet}}.

\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a4db40113df9eb92267c9eae694bafa5f}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a4db40113df9eb92267c9eae694bafa5f} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}!getLength@{getLength}}
\index{getLength@{getLength}!com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}}
\doxysubsubsection{\texorpdfstring{getLength()}{getLength()}}
{\footnotesize\ttfamily int com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+raw.\+Raw\+Packet.\+get\+Length (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Gets the size of the entire packet (payload size + header size) 



Implements \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1Packet_a4f09071f8a6b4317de358dd7f39c42d8}{com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+Packet}}.

\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a9f5657d3849d231fbac7db3ebf74965c}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a9f5657d3849d231fbac7db3ebf74965c} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}!setPayload@{setPayload}}
\index{setPayload@{setPayload}!com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}}
\doxysubsubsection{\texorpdfstring{setPayload()}{setPayload()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+raw.\+Raw\+Packet.\+set\+Payload (\begin{DoxyParamCaption}\item[{byte\mbox{[}$\,$\mbox{]}}]{payload,  }\item[{int}]{payload\+Size }\end{DoxyParamCaption})}



Sets the payload to be wrapped in the packet. 

Payload is copied after the header. To help reusing buffers, the size of the payload inside the bytes array is passed as a parameter. This allows passing a larger buffer (that would be reused for the generation of multiple packets). Only the good part of this bytes array is copied, not the entire bytes array. \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a40999af186f7089da1812ab6071fbd35}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1raw_1_1RawPacket_a40999af186f7089da1812ab6071fbd35} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}!setPayloadSize@{setPayloadSize}}
\index{setPayloadSize@{setPayloadSize}!com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket@{com.tritondigital.net.streaming.proxy.dataprovider.raw.RawPacket}}
\doxysubsubsection{\texorpdfstring{setPayloadSize()}{setPayloadSize()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+raw.\+Raw\+Packet.\+set\+Payload\+Size (\begin{DoxyParamCaption}\item[{int}]{payload\+Size }\end{DoxyParamCaption})}

Sets the payload size. If the current buffer is not large enough, it is reallocated and the header is copied to the new buffer.

No assumption can be made regarding the previous payload after a call to this method. It may still be present if no reallocation was necessary, and it may be lost if there was a reallocation (as only the header is copied). It is assumed that changing the size of the payload implicitly implies changing the payload itself. 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
streamingproxy/src/main/java/com/tritondigital/net/streaming/proxy/dataprovider/raw/Raw\+Packet.\+java\end{DoxyCompactItemize}
