\hypertarget{net_8c}{
\section{net.c File Reference}
\label{net_8c}\index{net.c@{net.c}}
}
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct \hyperlink{structSocket}{Socket}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{net_8c_bb295e2f4628790b5329fa158ebe8883}{sceNetResolverCreate} (int $\ast$rid, void $\ast$buf, SceSize buflen)
\item 
int \hyperlink{net_8c_3db1afb251362156c51ee13a7482dd54}{sceNetResolverStartNtoA} (int rid, const char $\ast$hostname, u32 $\ast$in\_\-addr, unsigned int timeout, int retry)
\item 
int \hyperlink{net_8c_d79b637419198dfd46faa8fcb14c9985}{sceNetResolverStartAtoN} (int rid, const u32 $\ast$in\_\-addr, char $\ast$hostname, SceSize hostname\_\-len, unsigned int timeout, int retry)
\item 
int \hyperlink{net_8c_f92f0d6319530703c29cdb6685a0293a}{sceNetResolverStop} (int rid)
\item 
int \hyperlink{net_8c_e88f6a4b35ea10d2f182b472ff2ee868}{sceNetInetInetAton} (const char $\ast$host, u32 $\ast$in\_\-addr)
\item 
static void \hyperlink{net_8c_923e2b445d1b3051b11c944f8c2a4348}{netInit} (void)
\item 
static void \hyperlink{net_8c_3e086804a4f836c798dbb946c0d9ddb6}{netTerm} (void)
\item 
static int \hyperlink{net_8c_4906bdb226adcc5210470aee14f71bc2}{netDialog} ()
\item 
static int \hyperlink{net_8c_8c05083a2da062d060c13b9e09fd097a}{connectTo} (int connectNum)
\item 
static int \hyperlink{net_8c_634fa33e4897ac300e55ede03dde74ce}{Wlan\_\-init} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_eb7d1208cb313fa5558834708185cfdc}{Wlan\_\-term} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_87be326b8da55ee72c83e029adea8395}{Wlan\_\-getIPAddress} (lua\_\-State $\ast$L)
\item 
\hyperlink{net_8c_115431e4129eae76a3e4a0b948dce19d}{UserdataStubs} (\hyperlink{structSocket}{Socket}, \hyperlink{structSocket}{Socket} $\ast$)
\item 
unsigned short \hyperlink{net_8c_890e0e63c1de400cf35598bcd6c001f7}{htons} (unsigned short wIn)
\item 
static int \hyperlink{net_8c_78d958e652657d9576c5791acd6d7a05}{setSockNoBlock} (SOCKET s, u32 val)
\item 
void \hyperlink{net_8c_5e7a5746cfd0d4432d69d986144f0116}{ShowMessageDialog} (const char $\ast$message, int enableYesno)
\item 
static int \hyperlink{net_8c_0e1e73ee6521051ca6a79ab302901125}{Socket\_\-connect} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_8cba02aef018bef2ec79b78edd860cec}{Socket\_\-isConnected} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_7a2c499a5c3334c7e87c8cb18f89786a}{Socket\_\-createServerSocket} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_684c0010e67869c99bec0477ef9bcd76}{Socket\_\-accept} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_44d4fa03a56b06cf2d2e00a0b87f798c}{Socket\_\-recv} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_3e70a8c8f6455901c752f3575fc659b1}{Socket\_\-send} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_928be9b5377f35229a7a4d30046b703a}{Socket\_\-close} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_5f00980cf7efe6d46c6deaf1defda232}{Socket\_\-tostring} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_897701ea2781f448467f954a888ebb6f}{Socket\_\-connect\_\-udp} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_ba71d4329497bf2bdacbb03879526eff}{Socket\_\-recv\_\-udp} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_8265e60f270bb5cdc53b5aa9ba16e0d1}{Socket\_\-send\_\-udp} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_0777c88a8f8a7d29fc26dbf7d018d879}{Adhoc\_\-init} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_c6b2f14d3ef39dd900d133a153932c57}{Adhoc\_\-term} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_cccb1ae0206b7634f4e99cb16e7ae5d6}{adhoc\_\-Connect} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_fd418d2076876bdbba48288d2f5c47a3}{adhoc\_\-GetState} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_40eb6c040d5ac9ef016af1b4c3b4b409}{adhoc\_\-sendPDP} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_f13d823506178ac360e8172614f78104}{adhoc\_\-recvPDP} (lua\_\-State $\ast$L)
\item 
static int \hyperlink{net_8c_33ad540d65b639154630835dec00e011}{adhoc\_\-getMac} (lua\_\-State $\ast$L)
\item 
\hyperlink{net_8c_a46a44de8f44dcdb837a39f8e5774b28}{UserdataRegister} (\hyperlink{structSocket}{Socket}, \hyperlink{net_8c_97867c4f6d28d449e3b11adc83e6d282}{Socket\_\-methods}, \hyperlink{net_8c_87a9ec3e7a3ec86e03bde671ee792b35}{Socket\_\-meta})
\item 
void \hyperlink{net_8c_b4cd2b92201d101c977186f84f71d51a}{net\_\-init} (lua\_\-State $\ast$L)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
static const char $\ast$ \hyperlink{net_8c_8e1f2ba99baa730e89677a6270563917}{wlanNotInitialized} = \char`\"{}WLAN not initialized.\char`\"{}
\item 
static int \hyperlink{net_8c_05a1a3fc9206f64dc84d0bcb4f94238e}{wlanInitialized} = 0
\item 
static char \hyperlink{net_8c_c2362ef2070e402f1834c6d7d46d8d88}{resolverBuffer} \mbox{[}1024 $\ast$10\mbox{]}
\item 
static int \hyperlink{net_8c_3be45920561ae93524b17eb0f50541d8}{resolverId}
\item 
static int \hyperlink{net_8c_24bae9fa77cd6991fd042be2a724237f}{isconnected} = 1
\item 
static bool \hyperlink{net_8c_11bafa992b89f599c3b8326e9307a8bf}{adhocInitialized} = 0
\item 
static bool \hyperlink{net_8c_848775cce97950b1090a114176204206}{adhocConnected} = 0
\item 
static const luaL\_\-reg \hyperlink{net_8c_97867c4f6d28d449e3b11adc83e6d282}{Socket\_\-methods} \mbox{[}$\,$\mbox{]}
\item 
static const luaL\_\-reg \hyperlink{net_8c_87a9ec3e7a3ec86e03bde671ee792b35}{Socket\_\-meta} \mbox{[}$\,$\mbox{]}
\item 
static const luaL\_\-reg \hyperlink{net_8c_71f23d46c5cba5cd12994ff981869471}{Adhoc\_\-functions} \mbox{[}$\,$\mbox{]}
\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{net_8c_cccb1ae0206b7634f4e99cb16e7ae5d6}{
\index{net.c@{net.c}!adhoc\_\-Connect@{adhoc\_\-Connect}}
\index{adhoc\_\-Connect@{adhoc\_\-Connect}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int adhoc\_\-Connect (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_cccb1ae0206b7634f4e99cb16e7ae5d6}


\hypertarget{net_8c_33ad540d65b639154630835dec00e011}{
\index{net.c@{net.c}!adhoc\_\-getMac@{adhoc\_\-getMac}}
\index{adhoc\_\-getMac@{adhoc\_\-getMac}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int adhoc\_\-getMac (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_33ad540d65b639154630835dec00e011}


\hypertarget{net_8c_fd418d2076876bdbba48288d2f5c47a3}{
\index{net.c@{net.c}!adhoc\_\-GetState@{adhoc\_\-GetState}}
\index{adhoc\_\-GetState@{adhoc\_\-GetState}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int adhoc\_\-GetState (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_fd418d2076876bdbba48288d2f5c47a3}


\hypertarget{net_8c_0777c88a8f8a7d29fc26dbf7d018d879}{
\index{net.c@{net.c}!Adhoc\_\-init@{Adhoc\_\-init}}
\index{Adhoc\_\-init@{Adhoc\_\-init}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Adhoc\_\-init (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_0777c88a8f8a7d29fc26dbf7d018d879}


\hypertarget{net_8c_f13d823506178ac360e8172614f78104}{
\index{net.c@{net.c}!adhoc\_\-recvPDP@{adhoc\_\-recvPDP}}
\index{adhoc\_\-recvPDP@{adhoc\_\-recvPDP}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int adhoc\_\-recvPDP (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_f13d823506178ac360e8172614f78104}


\hypertarget{net_8c_40eb6c040d5ac9ef016af1b4c3b4b409}{
\index{net.c@{net.c}!adhoc\_\-sendPDP@{adhoc\_\-sendPDP}}
\index{adhoc\_\-sendPDP@{adhoc\_\-sendPDP}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int adhoc\_\-sendPDP (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_40eb6c040d5ac9ef016af1b4c3b4b409}


\hypertarget{net_8c_c6b2f14d3ef39dd900d133a153932c57}{
\index{net.c@{net.c}!Adhoc\_\-term@{Adhoc\_\-term}}
\index{Adhoc\_\-term@{Adhoc\_\-term}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Adhoc\_\-term (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_c6b2f14d3ef39dd900d133a153932c57}


\hypertarget{net_8c_8c05083a2da062d060c13b9e09fd097a}{
\index{net.c@{net.c}!connectTo@{connectTo}}
\index{connectTo@{connectTo}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int connectTo (int {\em connectNum})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_8c05083a2da062d060c13b9e09fd097a}


\hypertarget{net_8c_890e0e63c1de400cf35598bcd6c001f7}{
\index{net.c@{net.c}!htons@{htons}}
\index{htons@{htons}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned short htons (unsigned short {\em wIn})}}
\label{net_8c_890e0e63c1de400cf35598bcd6c001f7}


\hypertarget{net_8c_b4cd2b92201d101c977186f84f71d51a}{
\index{net.c@{net.c}!net\_\-init@{net\_\-init}}
\index{net\_\-init@{net\_\-init}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void net\_\-init (lua\_\-State $\ast$ {\em L})}}
\label{net_8c_b4cd2b92201d101c977186f84f71d51a}


\hypertarget{net_8c_4906bdb226adcc5210470aee14f71bc2}{
\index{net.c@{net.c}!netDialog@{netDialog}}
\index{netDialog@{netDialog}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int netDialog ()\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_4906bdb226adcc5210470aee14f71bc2}


\hypertarget{net_8c_923e2b445d1b3051b11c944f8c2a4348}{
\index{net.c@{net.c}!netInit@{netInit}}
\index{netInit@{netInit}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void netInit (void)\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_923e2b445d1b3051b11c944f8c2a4348}


\hypertarget{net_8c_3e086804a4f836c798dbb946c0d9ddb6}{
\index{net.c@{net.c}!netTerm@{netTerm}}
\index{netTerm@{netTerm}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void netTerm (void)\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_3e086804a4f836c798dbb946c0d9ddb6}


\hypertarget{net_8c_e88f6a4b35ea10d2f182b472ff2ee868}{
\index{net.c@{net.c}!sceNetInetInetAton@{sceNetInetInetAton}}
\index{sceNetInetInetAton@{sceNetInetInetAton}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int sceNetInetInetAton (const char $\ast$ {\em host}, \/  u32 $\ast$ {\em in\_\-addr})}}
\label{net_8c_e88f6a4b35ea10d2f182b472ff2ee868}


\hypertarget{net_8c_bb295e2f4628790b5329fa158ebe8883}{
\index{net.c@{net.c}!sceNetResolverCreate@{sceNetResolverCreate}}
\index{sceNetResolverCreate@{sceNetResolverCreate}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int sceNetResolverCreate (int $\ast$ {\em rid}, \/  void $\ast$ {\em buf}, \/  SceSize {\em buflen})}}
\label{net_8c_bb295e2f4628790b5329fa158ebe8883}


\hypertarget{net_8c_d79b637419198dfd46faa8fcb14c9985}{
\index{net.c@{net.c}!sceNetResolverStartAtoN@{sceNetResolverStartAtoN}}
\index{sceNetResolverStartAtoN@{sceNetResolverStartAtoN}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int sceNetResolverStartAtoN (int {\em rid}, \/  const u32 $\ast$ {\em in\_\-addr}, \/  char $\ast$ {\em hostname}, \/  SceSize {\em hostname\_\-len}, \/  unsigned int {\em timeout}, \/  int {\em retry})}}
\label{net_8c_d79b637419198dfd46faa8fcb14c9985}


\hypertarget{net_8c_3db1afb251362156c51ee13a7482dd54}{
\index{net.c@{net.c}!sceNetResolverStartNtoA@{sceNetResolverStartNtoA}}
\index{sceNetResolverStartNtoA@{sceNetResolverStartNtoA}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int sceNetResolverStartNtoA (int {\em rid}, \/  const char $\ast$ {\em hostname}, \/  u32 $\ast$ {\em in\_\-addr}, \/  unsigned int {\em timeout}, \/  int {\em retry})}}
\label{net_8c_3db1afb251362156c51ee13a7482dd54}


\hypertarget{net_8c_f92f0d6319530703c29cdb6685a0293a}{
\index{net.c@{net.c}!sceNetResolverStop@{sceNetResolverStop}}
\index{sceNetResolverStop@{sceNetResolverStop}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int sceNetResolverStop (int {\em rid})}}
\label{net_8c_f92f0d6319530703c29cdb6685a0293a}


\hypertarget{net_8c_78d958e652657d9576c5791acd6d7a05}{
\index{net.c@{net.c}!setSockNoBlock@{setSockNoBlock}}
\index{setSockNoBlock@{setSockNoBlock}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int setSockNoBlock (SOCKET {\em s}, \/  u32 {\em val})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_78d958e652657d9576c5791acd6d7a05}


\hypertarget{net_8c_5e7a5746cfd0d4432d69d986144f0116}{
\index{net.c@{net.c}!ShowMessageDialog@{ShowMessageDialog}}
\index{ShowMessageDialog@{ShowMessageDialog}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ShowMessageDialog (const char $\ast$ {\em message}, \/  int {\em enableYesno})}}
\label{net_8c_5e7a5746cfd0d4432d69d986144f0116}


\hypertarget{net_8c_684c0010e67869c99bec0477ef9bcd76}{
\index{net.c@{net.c}!Socket\_\-accept@{Socket\_\-accept}}
\index{Socket\_\-accept@{Socket\_\-accept}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-accept (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_684c0010e67869c99bec0477ef9bcd76}


\hypertarget{net_8c_928be9b5377f35229a7a4d30046b703a}{
\index{net.c@{net.c}!Socket\_\-close@{Socket\_\-close}}
\index{Socket\_\-close@{Socket\_\-close}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-close (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_928be9b5377f35229a7a4d30046b703a}


\hypertarget{net_8c_0e1e73ee6521051ca6a79ab302901125}{
\index{net.c@{net.c}!Socket\_\-connect@{Socket\_\-connect}}
\index{Socket\_\-connect@{Socket\_\-connect}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-connect (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_0e1e73ee6521051ca6a79ab302901125}


\hypertarget{net_8c_897701ea2781f448467f954a888ebb6f}{
\index{net.c@{net.c}!Socket\_\-connect\_\-udp@{Socket\_\-connect\_\-udp}}
\index{Socket\_\-connect\_\-udp@{Socket\_\-connect\_\-udp}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-connect\_\-udp (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_897701ea2781f448467f954a888ebb6f}


\hypertarget{net_8c_7a2c499a5c3334c7e87c8cb18f89786a}{
\index{net.c@{net.c}!Socket\_\-createServerSocket@{Socket\_\-createServerSocket}}
\index{Socket\_\-createServerSocket@{Socket\_\-createServerSocket}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-createServerSocket (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_7a2c499a5c3334c7e87c8cb18f89786a}


\hypertarget{net_8c_8cba02aef018bef2ec79b78edd860cec}{
\index{net.c@{net.c}!Socket\_\-isConnected@{Socket\_\-isConnected}}
\index{Socket\_\-isConnected@{Socket\_\-isConnected}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-isConnected (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_8cba02aef018bef2ec79b78edd860cec}


\hypertarget{net_8c_44d4fa03a56b06cf2d2e00a0b87f798c}{
\index{net.c@{net.c}!Socket\_\-recv@{Socket\_\-recv}}
\index{Socket\_\-recv@{Socket\_\-recv}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-recv (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_44d4fa03a56b06cf2d2e00a0b87f798c}


\hypertarget{net_8c_ba71d4329497bf2bdacbb03879526eff}{
\index{net.c@{net.c}!Socket\_\-recv\_\-udp@{Socket\_\-recv\_\-udp}}
\index{Socket\_\-recv\_\-udp@{Socket\_\-recv\_\-udp}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-recv\_\-udp (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_ba71d4329497bf2bdacbb03879526eff}


\hypertarget{net_8c_3e70a8c8f6455901c752f3575fc659b1}{
\index{net.c@{net.c}!Socket\_\-send@{Socket\_\-send}}
\index{Socket\_\-send@{Socket\_\-send}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-send (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_3e70a8c8f6455901c752f3575fc659b1}


\hypertarget{net_8c_8265e60f270bb5cdc53b5aa9ba16e0d1}{
\index{net.c@{net.c}!Socket\_\-send\_\-udp@{Socket\_\-send\_\-udp}}
\index{Socket\_\-send\_\-udp@{Socket\_\-send\_\-udp}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-send\_\-udp (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_8265e60f270bb5cdc53b5aa9ba16e0d1}


\hypertarget{net_8c_5f00980cf7efe6d46c6deaf1defda232}{
\index{net.c@{net.c}!Socket\_\-tostring@{Socket\_\-tostring}}
\index{Socket\_\-tostring@{Socket\_\-tostring}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Socket\_\-tostring (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_5f00980cf7efe6d46c6deaf1defda232}


\hypertarget{net_8c_a46a44de8f44dcdb837a39f8e5774b28}{
\index{net.c@{net.c}!UserdataRegister@{UserdataRegister}}
\index{UserdataRegister@{UserdataRegister}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}UserdataRegister ({\bf Socket}, \/  {\bf Socket\_\-methods}, \/  {\bf Socket\_\-meta})}}
\label{net_8c_a46a44de8f44dcdb837a39f8e5774b28}


\hypertarget{net_8c_115431e4129eae76a3e4a0b948dce19d}{
\index{net.c@{net.c}!UserdataStubs@{UserdataStubs}}
\index{UserdataStubs@{UserdataStubs}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}UserdataStubs ({\bf Socket}, \/  {\bf Socket} $\ast$)}}
\label{net_8c_115431e4129eae76a3e4a0b948dce19d}


\hypertarget{net_8c_87be326b8da55ee72c83e029adea8395}{
\index{net.c@{net.c}!Wlan\_\-getIPAddress@{Wlan\_\-getIPAddress}}
\index{Wlan\_\-getIPAddress@{Wlan\_\-getIPAddress}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Wlan\_\-getIPAddress (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_87be326b8da55ee72c83e029adea8395}


\hypertarget{net_8c_634fa33e4897ac300e55ede03dde74ce}{
\index{net.c@{net.c}!Wlan\_\-init@{Wlan\_\-init}}
\index{Wlan\_\-init@{Wlan\_\-init}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Wlan\_\-init (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_634fa33e4897ac300e55ede03dde74ce}


\hypertarget{net_8c_eb7d1208cb313fa5558834708185cfdc}{
\index{net.c@{net.c}!Wlan\_\-term@{Wlan\_\-term}}
\index{Wlan\_\-term@{Wlan\_\-term}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Wlan\_\-term (lua\_\-State $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_eb7d1208cb313fa5558834708185cfdc}




\subsection{Variable Documentation}
\hypertarget{net_8c_71f23d46c5cba5cd12994ff981869471}{
\index{net.c@{net.c}!Adhoc\_\-functions@{Adhoc\_\-functions}}
\index{Adhoc\_\-functions@{Adhoc\_\-functions}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const luaL\_\-reg {\bf Adhoc\_\-functions}\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_71f23d46c5cba5cd12994ff981869471}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
        {"init", Adhoc_init},
        {"connect", adhoc_Connect},
        {"getState", adhoc_GetState},
        {"send", adhoc_sendPDP},
        {"recv", adhoc_recvPDP},
        {"term", Adhoc_term},
        {"getMac", adhoc_getMac},
        {0, 0}
}
\end{verbatim}
\end{Code}
\hypertarget{net_8c_848775cce97950b1090a114176204206}{
\index{net.c@{net.c}!adhocConnected@{adhocConnected}}
\index{adhocConnected@{adhocConnected}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool {\bf adhocConnected} = 0\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_848775cce97950b1090a114176204206}


\hypertarget{net_8c_11bafa992b89f599c3b8326e9307a8bf}{
\index{net.c@{net.c}!adhocInitialized@{adhocInitialized}}
\index{adhocInitialized@{adhocInitialized}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool {\bf adhocInitialized} = 0\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_11bafa992b89f599c3b8326e9307a8bf}


\hypertarget{net_8c_24bae9fa77cd6991fd042be2a724237f}{
\index{net.c@{net.c}!isconnected@{isconnected}}
\index{isconnected@{isconnected}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf isconnected} = 1\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_24bae9fa77cd6991fd042be2a724237f}


\hypertarget{net_8c_c2362ef2070e402f1834c6d7d46d8d88}{
\index{net.c@{net.c}!resolverBuffer@{resolverBuffer}}
\index{resolverBuffer@{resolverBuffer}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char {\bf resolverBuffer}\mbox{[}1024 $\ast$10\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_c2362ef2070e402f1834c6d7d46d8d88}


\hypertarget{net_8c_3be45920561ae93524b17eb0f50541d8}{
\index{net.c@{net.c}!resolverId@{resolverId}}
\index{resolverId@{resolverId}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf resolverId}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_3be45920561ae93524b17eb0f50541d8}


\hypertarget{net_8c_87a9ec3e7a3ec86e03bde671ee792b35}{
\index{net.c@{net.c}!Socket\_\-meta@{Socket\_\-meta}}
\index{Socket\_\-meta@{Socket\_\-meta}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const luaL\_\-reg {\bf Socket\_\-meta}\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_87a9ec3e7a3ec86e03bde671ee792b35}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
        {"__gc", Socket_free},
        {"__tostring", Socket_tostring},
        {0,0}
}
\end{verbatim}
\end{Code}
\hypertarget{net_8c_97867c4f6d28d449e3b11adc83e6d282}{
\index{net.c@{net.c}!Socket\_\-methods@{Socket\_\-methods}}
\index{Socket\_\-methods@{Socket\_\-methods}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const luaL\_\-reg {\bf Socket\_\-methods}\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_97867c4f6d28d449e3b11adc83e6d282}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
        {"connect", Socket_connect},
        {"createServerSocket", Socket_createServerSocket},
        {"udpConnect", Socket_connect_udp},
        {"isConnected", Socket_isConnected},
        {"accept", Socket_accept},
        {"send", Socket_send},
        {"recv", Socket_recv},
        {"close", Socket_close},
        {"udpRecv", Socket_recv_udp},
        {"udpSend", Socket_send_udp},
        {0,0}
}
\end{verbatim}
\end{Code}
\hypertarget{net_8c_05a1a3fc9206f64dc84d0bcb4f94238e}{
\index{net.c@{net.c}!wlanInitialized@{wlanInitialized}}
\index{wlanInitialized@{wlanInitialized}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf wlanInitialized} = 0\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_05a1a3fc9206f64dc84d0bcb4f94238e}


\hypertarget{net_8c_8e1f2ba99baa730e89677a6270563917}{
\index{net.c@{net.c}!wlanNotInitialized@{wlanNotInitialized}}
\index{wlanNotInitialized@{wlanNotInitialized}!net.c@{net.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf wlanNotInitialized} = \char`\"{}WLAN not initialized.\char`\"{}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{net_8c_8e1f2ba99baa730e89677a6270563917}


