\hypertarget{DirectIPServer_2main_8cpp}{\section{trunk/bwapi/\-Direct\-I\-P\-Server/main.cpp \-File \-Reference}
\label{DirectIPServer_2main_8cpp}\index{trunk/bwapi/\-Direct\-I\-P\-Server/main.\-cpp@{trunk/bwapi/\-Direct\-I\-P\-Server/main.\-cpp}}
}
{\ttfamily \#include \char`\"{}main.\-h\char`\"{}}\*
{\ttfamily \#include $<$stdio.\-h$>$}\*
{\ttfamily \#include $<$list$>$}\*
\-Include dependency graph for main.\-cpp\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=263pt]{DirectIPServer_2main_8cpp__incl}
\end{center}
\end{figure}
\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{DirectIPServer_2main_8cpp_a1131e03a5d2d27571f0d15eba1ea4f4a}{\-S\-O\-C\-K\-C\-H\-E\-C\-K}(\hyperlink{Detours_8h_aea72dea2d265251bf7d417d17b1add4e}{x})~\hyperlink{ChaosLauncherInjector_2source_2DLLMain_8cpp_ae8aa3b41b941c754d5e345fe842a85f8}{if} ( \hyperlink{Detours_8h_aea72dea2d265251bf7d417d17b1add4e}{x} == \-S\-O\-C\-K\-E\-T\-\_\-\-E\-R\-R\-O\-R ) printf(\char`\"{}\-An error has occured in the following call\-:$\backslash$n    \char`\"{} \#x \char`\"{}$\backslash$n\char`\"{})
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{DirectIPServer_2main_8cpp_a0ddf1224851353fc92bfbff6f499fa97}{main} (\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} argc, char $\ast$argv\mbox{[}$\,$\mbox{]})
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
std\-::list$<$ \hyperlink{classGameStruc}{\-Game\-Struc} $>$ \hyperlink{DirectIPServer_2main_8cpp_a13760d450606c8ca0ae6f9a8ded1ae50}{server\-Msg}
\item 
std\-::list$<$ \hyperlink{classGameStruc}{\-Game\-Struc} $>$ \hyperlink{DirectIPServer_2main_8cpp_ab7ae3c8a4b40b57d15afd32ea65cd8eb}{gamelist}
\item 
\-S\-O\-C\-K\-E\-T \hyperlink{DirectIPServer_2main_8cpp_ab8fc9c83dd0c6b800727240e351927e9}{s}
\item 
\-S\-O\-C\-K\-A\-D\-D\-R\-\_\-\-I\-N \hyperlink{DirectIPServer_2main_8cpp_addd0bb8ccbdcd7dcc31e12503651a8d1}{addr}
\item 
\hyperlink{Types_8h_a8aec363bdef0c755693c97d1757e8642}{\-D\-W\-O\-R\-D} \hyperlink{DirectIPServer_2main_8cpp_a318864aff313ef58157f31224c4955dd}{dw\-Next\-Game\-Id} = 1
\end{DoxyCompactItemize}


\subsection{\-Define \-Documentation}
\hypertarget{DirectIPServer_2main_8cpp_a1131e03a5d2d27571f0d15eba1ea4f4a}{\index{\-Direct\-I\-P\-Server/main.\-cpp@{\-Direct\-I\-P\-Server/main.\-cpp}!\-S\-O\-C\-K\-C\-H\-E\-C\-K@{\-S\-O\-C\-K\-C\-H\-E\-C\-K}}
\index{\-S\-O\-C\-K\-C\-H\-E\-C\-K@{\-S\-O\-C\-K\-C\-H\-E\-C\-K}!DirectIPServer/main.cpp@{\-Direct\-I\-P\-Server/main.\-cpp}}
\subsubsection[{\-S\-O\-C\-K\-C\-H\-E\-C\-K}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-S\-O\-C\-K\-C\-H\-E\-C\-K}(
\begin{DoxyParamCaption}
\item[{}]{{\bf x}}
\end{DoxyParamCaption}
)~{\bf if} ( {\bf x} == \-S\-O\-C\-K\-E\-T\-\_\-\-E\-R\-R\-O\-R ) printf(\char`\"{}\-An error has occured in the following call\-:$\backslash$n    \char`\"{} \#x \char`\"{}$\backslash$n\char`\"{})}}\label{DirectIPServer_2main_8cpp_a1131e03a5d2d27571f0d15eba1ea4f4a}


\subsection{\-Function \-Documentation}
\hypertarget{DirectIPServer_2main_8cpp_a0ddf1224851353fc92bfbff6f499fa97}{\index{\-Direct\-I\-P\-Server/main.\-cpp@{\-Direct\-I\-P\-Server/main.\-cpp}!main@{main}}
\index{main@{main}!DirectIPServer/main.cpp@{\-Direct\-I\-P\-Server/main.\-cpp}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf main} (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{argc, }
\item[{char $\ast$}]{argv\mbox{[}$\,$\mbox{]}}
\end{DoxyParamCaption}
)}}\label{DirectIPServer_2main_8cpp_a0ddf1224851353fc92bfbff6f499fa97}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=198pt]{DirectIPServer_2main_8cpp_a0ddf1224851353fc92bfbff6f499fa97_cgraph}
\end{center}
\end{figure}




\subsection{\-Variable \-Documentation}
\hypertarget{DirectIPServer_2main_8cpp_addd0bb8ccbdcd7dcc31e12503651a8d1}{\index{\-Direct\-I\-P\-Server/main.\-cpp@{\-Direct\-I\-P\-Server/main.\-cpp}!addr@{addr}}
\index{addr@{addr}!DirectIPServer/main.cpp@{\-Direct\-I\-P\-Server/main.\-cpp}}
\subsubsection[{addr}]{\setlength{\rightskip}{0pt plus 5cm}\-S\-O\-C\-K\-A\-D\-D\-R\-\_\-\-I\-N {\bf addr}}}\label{DirectIPServer_2main_8cpp_addd0bb8ccbdcd7dcc31e12503651a8d1}
\hypertarget{DirectIPServer_2main_8cpp_a318864aff313ef58157f31224c4955dd}{\index{\-Direct\-I\-P\-Server/main.\-cpp@{\-Direct\-I\-P\-Server/main.\-cpp}!dw\-Next\-Game\-Id@{dw\-Next\-Game\-Id}}
\index{dw\-Next\-Game\-Id@{dw\-Next\-Game\-Id}!DirectIPServer/main.cpp@{\-Direct\-I\-P\-Server/main.\-cpp}}
\subsubsection[{dw\-Next\-Game\-Id}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-D\-W\-O\-R\-D} {\bf dw\-Next\-Game\-Id} = 1}}\label{DirectIPServer_2main_8cpp_a318864aff313ef58157f31224c4955dd}
\hypertarget{DirectIPServer_2main_8cpp_ab7ae3c8a4b40b57d15afd32ea65cd8eb}{\index{\-Direct\-I\-P\-Server/main.\-cpp@{\-Direct\-I\-P\-Server/main.\-cpp}!gamelist@{gamelist}}
\index{gamelist@{gamelist}!DirectIPServer/main.cpp@{\-Direct\-I\-P\-Server/main.\-cpp}}
\subsubsection[{gamelist}]{\setlength{\rightskip}{0pt plus 5cm}std\-::list$<${\bf \-Game\-Struc}$>$ {\bf gamelist}}}\label{DirectIPServer_2main_8cpp_ab7ae3c8a4b40b57d15afd32ea65cd8eb}
\hypertarget{DirectIPServer_2main_8cpp_ab8fc9c83dd0c6b800727240e351927e9}{\index{\-Direct\-I\-P\-Server/main.\-cpp@{\-Direct\-I\-P\-Server/main.\-cpp}!s@{s}}
\index{s@{s}!DirectIPServer/main.cpp@{\-Direct\-I\-P\-Server/main.\-cpp}}
\subsubsection[{s}]{\setlength{\rightskip}{0pt plus 5cm}\-S\-O\-C\-K\-E\-T {\bf s}}}\label{DirectIPServer_2main_8cpp_ab8fc9c83dd0c6b800727240e351927e9}
\hypertarget{DirectIPServer_2main_8cpp_a13760d450606c8ca0ae6f9a8ded1ae50}{\index{\-Direct\-I\-P\-Server/main.\-cpp@{\-Direct\-I\-P\-Server/main.\-cpp}!server\-Msg@{server\-Msg}}
\index{server\-Msg@{server\-Msg}!DirectIPServer/main.cpp@{\-Direct\-I\-P\-Server/main.\-cpp}}
\subsubsection[{server\-Msg}]{\setlength{\rightskip}{0pt plus 5cm}std\-::list$<${\bf \-Game\-Struc}$>$ {\bf server\-Msg}}}\label{DirectIPServer_2main_8cpp_a13760d450606c8ca0ae6f9a8ded1ae50}
