\hypertarget{class_odin_a_i_1_1_network_manager}{\section{Odin\-A\-I\-:\-:Network\-Manager Class Reference}
\label{class_odin_a_i_1_1_network_manager}\index{Odin\-A\-I\-::\-Network\-Manager@{Odin\-A\-I\-::\-Network\-Manager}}
}


{\ttfamily \#include $<$Network\-Manager.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{class_odin_a_i_1_1_network_manager_a1e66a70c4f88d425efbcbf2a4364fb09}{Connect} (const char $\ast$ip, const char $\ast$port, const Async\-Recv\-Callback \&async\-Recv\-Callback)
\item 
void \hyperlink{class_odin_a_i_1_1_network_manager_a797846e87dd04c39c2180eccd81b48b0}{Update} ()
\item 
void \hyperlink{class_odin_a_i_1_1_network_manager_ac537d7647788317cfffdcc79c7e8f34f}{Close} ()
\item 
void \hyperlink{class_odin_a_i_1_1_network_manager_afe255f555dd88c58be9a6c7eb6118ee2}{Send} (const void $\ast$data, int size)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Manages the network traffic. 

\subsection{Member Function Documentation}
\hypertarget{class_odin_a_i_1_1_network_manager_ac537d7647788317cfffdcc79c7e8f34f}{\index{Odin\-A\-I\-::\-Network\-Manager@{Odin\-A\-I\-::\-Network\-Manager}!Close@{Close}}
\index{Close@{Close}!OdinAI::NetworkManager@{Odin\-A\-I\-::\-Network\-Manager}}
\subsubsection[{Close}]{\setlength{\rightskip}{0pt plus 5cm}void Odin\-A\-I\-::\-Network\-Manager\-::\-Close (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_odin_a_i_1_1_network_manager_ac537d7647788317cfffdcc79c7e8f34f}
Closes the connection to server. \hypertarget{class_odin_a_i_1_1_network_manager_a1e66a70c4f88d425efbcbf2a4364fb09}{\index{Odin\-A\-I\-::\-Network\-Manager@{Odin\-A\-I\-::\-Network\-Manager}!Connect@{Connect}}
\index{Connect@{Connect}!OdinAI::NetworkManager@{Odin\-A\-I\-::\-Network\-Manager}}
\subsubsection[{Connect}]{\setlength{\rightskip}{0pt plus 5cm}bool Odin\-A\-I\-::\-Network\-Manager\-::\-Connect (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{ip, }
\item[{const char $\ast$}]{port, }
\item[{const Async\-Recv\-Callback \&}]{async\-Recv\-Callback}
\end{DoxyParamCaption}
)}}\label{class_odin_a_i_1_1_network_manager_a1e66a70c4f88d425efbcbf2a4364fb09}
Connects to the server. Our network implementation is async. 
\begin{DoxyParams}{Parameters}
{\em async\-Recv\-Callback} & Asynchronous callback for receive. \\
\hline
\end{DoxyParams}
\hypertarget{class_odin_a_i_1_1_network_manager_afe255f555dd88c58be9a6c7eb6118ee2}{\index{Odin\-A\-I\-::\-Network\-Manager@{Odin\-A\-I\-::\-Network\-Manager}!Send@{Send}}
\index{Send@{Send}!OdinAI::NetworkManager@{Odin\-A\-I\-::\-Network\-Manager}}
\subsubsection[{Send}]{\setlength{\rightskip}{0pt plus 5cm}void Odin\-A\-I\-::\-Network\-Manager\-::\-Send (
\begin{DoxyParamCaption}
\item[{const void $\ast$}]{data, }
\item[{int}]{size}
\end{DoxyParamCaption}
)}}\label{class_odin_a_i_1_1_network_manager_afe255f555dd88c58be9a6c7eb6118ee2}
Send message to server. \hypertarget{class_odin_a_i_1_1_network_manager_a797846e87dd04c39c2180eccd81b48b0}{\index{Odin\-A\-I\-::\-Network\-Manager@{Odin\-A\-I\-::\-Network\-Manager}!Update@{Update}}
\index{Update@{Update}!OdinAI::NetworkManager@{Odin\-A\-I\-::\-Network\-Manager}}
\subsubsection[{Update}]{\setlength{\rightskip}{0pt plus 5cm}void Odin\-A\-I\-::\-Network\-Manager\-::\-Update (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_odin_a_i_1_1_network_manager_a797846e87dd04c39c2180eccd81b48b0}
Checks for new packages. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
E\-:/\-Development/\-Projects/\-Odin\-A\-I/\-Include/\-Odin\-A\-I/Network\-Manager.\-h\end{DoxyCompactItemize}
