\section{socket\_\-bind.c File Reference}
\label{socket__bind_8c}\index{socket_bind.c@{socket\_\-bind.c}}
{\tt \#include $<$netinet/in.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf socket\_\-bind} (int port, int cqueue)
\begin{CompactList}\small\item\em Bind a socket to a port (Server side).\item\end{CompactList}\end{CompactItemize}


\subsection{Function Documentation}
\index{socket_bind.c@{socket\_\-bind.c}!socket_bind@{socket\_\-bind}}
\index{socket_bind@{socket\_\-bind}!socket_bind.c@{socket\_\-bind.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int socket\_\-bind (int {\em port}, int {\em cqueue})}\label{socket__bind_8c_a0}


Bind a socket to a port (Server side).

This function creates an Socket and binds it to a local port.\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
port}]an integer which specifies the port\item[{\em 
cqueue}]an integer how many pending connections queue will hold in the waiting queue.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns: ]\par
The File Descriptor (FD) which allows access to the bound port. \end{Desc}
