\hypertarget{class_b_m_a_u_d_p_server_socket}{}\section{B\+M\+A\+U\+D\+P\+Server\+Socket Class Reference}
\label{class_b_m_a_u_d_p_server_socket}\index{B\+M\+A\+U\+D\+P\+Server\+Socket@{B\+M\+A\+U\+D\+P\+Server\+Socket}}


{\ttfamily \#include $<$B\+M\+A\+U\+D\+P\+Server\+Socket.\+h$>$}



Inheritance diagram for B\+M\+A\+U\+D\+P\+Server\+Socket\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=272pt]{class_b_m_a_u_d_p_server_socket__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for B\+M\+A\+U\+D\+P\+Server\+Socket\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=329pt]{class_b_m_a_u_d_p_server_socket__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_b_m_a_u_d_p_server_socket_a7f32b0ee1fe9d6b7707f0c7742c5b370}\label{class_b_m_a_u_d_p_server_socket_a7f32b0ee1fe9d6b7707f0c7742c5b370}} 
{\bfseries B\+M\+A\+U\+D\+P\+Server\+Socket} (\hyperlink{class_b_m_a_e_poll}{B\+M\+A\+E\+Poll} \&e\+Poll, std\+::string url, short int port, std\+::string command\+Name)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_b_m_a_u_d_p_server_socket_aaec1d1fa5f874c7669574c3610cee24e}{on\+Data\+Received} (std\+::string data) override
\begin{DoxyCompactList}\small\item\em Called when data is received from the socket. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_b_m_a_u_d_p_server_socket_adfda067809028487bf6e3430da146419}\label{class_b_m_a_u_d_p_server_socket_adfda067809028487bf6e3430da146419}} 
void {\bfseries process\+Command} (\hyperlink{class_b_m_a_session}{B\+M\+A\+Session} $\ast$session)
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_b_m_a_u_d_p_server_socket_a546c253f0e165daef0dc9f60651a23f7}\label{class_b_m_a_u_d_p_server_socket_a546c253f0e165daef0dc9f60651a23f7}} 
std\+::vector$<$ \hyperlink{class_b_m_a_session}{B\+M\+A\+Session} $\ast$ $>$ {\bfseries sessions}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\hyperlink{class_b_m_a_u_d_p_socket}{B\+M\+A\+U\+D\+P\+Socket}

Manage a socket connection as a U\+DP server type. Connections to the socket are processed through the session list functionality. A list of sessions is maintained in a vector object. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_b_m_a_u_d_p_server_socket_aaec1d1fa5f874c7669574c3610cee24e}\label{class_b_m_a_u_d_p_server_socket_aaec1d1fa5f874c7669574c3610cee24e}} 
\index{B\+M\+A\+U\+D\+P\+Server\+Socket@{B\+M\+A\+U\+D\+P\+Server\+Socket}!on\+Data\+Received@{on\+Data\+Received}}
\index{on\+Data\+Received@{on\+Data\+Received}!B\+M\+A\+U\+D\+P\+Server\+Socket@{B\+M\+A\+U\+D\+P\+Server\+Socket}}
\subsubsection{\texorpdfstring{on\+Data\+Received()}{onDataReceived()}}
{\footnotesize\ttfamily void B\+M\+A\+U\+D\+P\+Server\+Socket\+::on\+Data\+Received (\begin{DoxyParamCaption}\item[{std\+::string}]{data }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



Called when data is received from the socket. 

The on\+Data\+Received method is called when the socket has received an event from epoll and there is data ready to be read from the socket. The default handler will pull the data and put it into the streambuf for the socket. E\+P\+O\+L\+L\+IN


\begin{DoxyParams}{Parameters}
{\em data} & the data that has been received from the socket. \\
\hline
\end{DoxyParams}


Implements \hyperlink{class_b_m_a_socket_ad77bf590a4d9807bd8f0a81667903f2e}{B\+M\+A\+Socket}.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
/home/barant/\+Development/\+B\+M\+A/server\+\_\+core/\+Server\+Core/B\+M\+A\+U\+D\+P\+Server\+Socket.\+h\item 
/home/barant/\+Development/\+B\+M\+A/server\+\_\+core/\+Server\+Core/B\+M\+A\+U\+D\+P\+Server\+Socket.\+cpp\end{DoxyCompactItemize}
