\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 
double \mbox{\hyperlink{group__Evil__Unistd__Group_ga618a57ccf0e29811e85de383ddb086cb}{evil\+\_\+time\+\_\+get}} (void)
\begin{DoxyCompactList}\small\item\em Return the time spent since the Evil library has been initialized. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__Evil__Unistd__Group_gaade6baa64ddc1f9f190ccdb73358541e}{evil\+\_\+sockets\+\_\+init}} (void)
\begin{DoxyCompactList}\small\item\em Initiates the use of Windows sockets. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Evil__Unistd__Group_ga64c9a315ea785ca30679c479a349d433}{evil\+\_\+sockets\+\_\+shutdown}} (void)
\begin{DoxyCompactList}\small\item\em Shutdown the Windows socket system. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__Evil__Unistd__Group_gadbb68c1c2c5e30137d5a92a08bfdbf6d}{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_ga618a57ccf0e29811e85de383ddb086cb}\label{group__Evil__Unistd__Group_ga618a57ccf0e29811e85de383ddb086cb}} 
\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 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_gaade6baa64ddc1f9f190ccdb73358541e}\label{group__Evil__Unistd__Group_gaade6baa64ddc1f9f190ccdb73358541e}} 
\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 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 evil\+\_\+init().

\mbox{\Hypertarget{group__Evil__Unistd__Group_ga64c9a315ea785ca30679c479a349d433}\label{group__Evil__Unistd__Group_ga64c9a315ea785ca30679c479a349d433}} 
\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 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 evil\+\_\+shutdown().

\mbox{\Hypertarget{group__Evil__Unistd__Group_gadbb68c1c2c5e30137d5a92a08bfdbf6d}\label{group__Evil__Unistd__Group_gadbb68c1c2c5e30137d5a92a08bfdbf6d}} 
\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 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_gaade6baa64ddc1f9f190ccdb73358541e}{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. 