\hypertarget{group__Evil__Unistd__Group}{}\doxysection{Unistd.\+h functions}
\label{group__Evil__Unistd__Group}\index{Unistd.h functions@{Unistd.h functions}}


This header provides functions ported from Unix in unistd.\+h.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EVIL\+\_\+\+API double \mbox{\hyperlink{group__Evil__Unistd__Group_ga9b5209785f6ac29feadc80d4bcd5cc88}{evil\+\_\+time\+\_\+get}} (void)
\begin{DoxyCompactList}\small\item\em Return the time spent since the Evil library has been initialized. \end{DoxyCompactList}\item 
EVIL\+\_\+\+API int \mbox{\hyperlink{group__Evil__Unistd__Group_gaea1f122de8991e7ef2d40e8bbdc97e3b}{evil\+\_\+sockets\+\_\+init}} (void)
\begin{DoxyCompactList}\small\item\em Initiates the use of Windows sockets. \end{DoxyCompactList}\item 
EVIL\+\_\+\+API void \mbox{\hyperlink{group__Evil__Unistd__Group_ga77ee8878524b16b35421eb8da19f173b}{evil\+\_\+sockets\+\_\+shutdown}} (void)
\begin{DoxyCompactList}\small\item\em Shutdown the Windows socket system. \end{DoxyCompactList}\item 
EVIL\+\_\+\+API int \mbox{\hyperlink{group__Evil__Unistd__Group_gab8a7104206a145568285297b323024f6}{evil\+\_\+pipe}} (int $\ast$fds)
\begin{DoxyCompactList}\small\item\em Create a pair of sockets. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This header provides functions ported from Unix in unistd.\+h. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Evil__Unistd__Group_ga9b5209785f6ac29feadc80d4bcd5cc88}\label{group__Evil__Unistd__Group_ga9b5209785f6ac29feadc80d4bcd5cc88}} 
\index{Unistd.h functions@{Unistd.h functions}!evil\_time\_get@{evil\_time\_get}}
\index{evil\_time\_get@{evil\_time\_get}!Unistd.h functions@{Unistd.h functions}}
\doxysubsubsection{\texorpdfstring{evil\_time\_get()}{evil\_time\_get()}}
{\footnotesize\ttfamily EVIL\+\_\+\+API double evil\+\_\+time\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Return the time spent since the Evil library has been initialized. 

\begin{DoxyReturn}{Returns}
The time spent since the Evil library has been initialized.
\end{DoxyReturn}
This function returns the time spent since the Evil library has been initialized. It uses a high-\/resolution timer and then can have a precision up to the nano-\/second. The precision is processor dependant. This function can be used to benchmark parts of code in with high precision.

Conformity\+: Not appliclable.

Supported OS\+: Windows XP. \mbox{\Hypertarget{group__Evil__Unistd__Group_gaea1f122de8991e7ef2d40e8bbdc97e3b}\label{group__Evil__Unistd__Group_gaea1f122de8991e7ef2d40e8bbdc97e3b}} 
\index{Unistd.h functions@{Unistd.h functions}!evil\_sockets\_init@{evil\_sockets\_init}}
\index{evil\_sockets\_init@{evil\_sockets\_init}!Unistd.h functions@{Unistd.h functions}}
\doxysubsubsection{\texorpdfstring{evil\_sockets\_init()}{evil\_sockets\_init()}}
{\footnotesize\ttfamily EVIL\+\_\+\+API int evil\+\_\+sockets\+\_\+init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Initiates the use of Windows sockets. 

\begin{DoxyReturn}{Returns}
1 on success, 0 otherwise.
\end{DoxyReturn}
Initiates the use of Windows sockets. If the function succeeds, it returns 1, otherwise it returns 0.

Conformity\+: Non applicable.

Supported OS\+: Windows XP. 

Referenced by \mbox{\hyperlink{group__Evil__Main__Group_gafb1a41bef00cfbdd4bd96b09c59fafa8}{evil\+\_\+init()}}.

\mbox{\Hypertarget{group__Evil__Unistd__Group_ga77ee8878524b16b35421eb8da19f173b}\label{group__Evil__Unistd__Group_ga77ee8878524b16b35421eb8da19f173b}} 
\index{Unistd.h functions@{Unistd.h functions}!evil\_sockets\_shutdown@{evil\_sockets\_shutdown}}
\index{evil\_sockets\_shutdown@{evil\_sockets\_shutdown}!Unistd.h functions@{Unistd.h functions}}
\doxysubsubsection{\texorpdfstring{evil\_sockets\_shutdown()}{evil\_sockets\_shutdown()}}
{\footnotesize\ttfamily EVIL\+\_\+\+API void evil\+\_\+sockets\+\_\+shutdown (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Shutdown the Windows socket system. 

Shutdown the Windows socket system.

Conformity\+: Non applicable.

Supported OS\+: Windows XP. 

Referenced by \mbox{\hyperlink{group__Evil__Main__Group_gad0f2f35a4504173b4ff420b91686e5b3}{evil\+\_\+shutdown()}}.

\mbox{\Hypertarget{group__Evil__Unistd__Group_gab8a7104206a145568285297b323024f6}\label{group__Evil__Unistd__Group_gab8a7104206a145568285297b323024f6}} 
\index{Unistd.h functions@{Unistd.h functions}!evil\_pipe@{evil\_pipe}}
\index{evil\_pipe@{evil\_pipe}!Unistd.h functions@{Unistd.h functions}}
\doxysubsubsection{\texorpdfstring{evil\_pipe()}{evil\_pipe()}}
{\footnotesize\ttfamily EVIL\+\_\+\+API int evil\+\_\+pipe (\begin{DoxyParamCaption}\item[{int $\ast$}]{fds }\end{DoxyParamCaption})}



Create a pair of sockets. 


\begin{DoxyParams}{Parameters}
{\em fds} & A pointer that contains two sockets.\\
\hline
\end{DoxyParams}
Create a pair of sockets that can be use with select(). Hence, \mbox{\hyperlink{group__Evil__Unistd__Group_gaea1f122de8991e7ef2d40e8bbdc97e3b}{evil\+\_\+sockets\+\_\+init()}} must have been caled at least once before. Contrary to Unix, that functions does not create a pair of file descriptors.

Conformity\+: Not applicable.

Supported OS\+: Windows XP. 