\section{block\_\-send.c File Reference}
\label{block__send_8c}\index{block_send.c@{block\_\-send.c}}
{\tt \#include $<$sys/types.h$>$}\par
{\tt \#include $<$sys/socket.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf block\_\-send} (int fd, unsigned int type, char $\ast$buf, unsigned int size)
\begin{CompactList}\small\item\em Send a block (composition of: type, size of datablock and datablock (buf)) to a socket.\item\end{CompactList}\end{CompactItemize}


\subsection{Function Documentation}
\index{block_send.c@{block\_\-send.c}!block_send@{block\_\-send}}
\index{block_send@{block\_\-send}!block_send.c@{block\_\-send.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int block\_\-send (int {\em fd}, unsigned int {\em type}, char $\ast$ {\em buf}, unsigned int {\em size})}\label{block__send_8c_a0}


Send a block (composition of: type, size of datablock and datablock (buf)) to a socket.

WARNING: The integers (type and size; excluding fd) are only 16 bit values (0 - 65535).\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
fd}](int) descriptor of the socket to which buf should send\item[{\em 
type}](unsigned int) This value can be used as buyer's option\item[{\em 
buf}](char $\ast$) which should be send\end{description}
\end{Desc}
\begin{Desc}
\item[Returns: ]\par
number of sent bytes, -1 if an error is occurt. \end{Desc}
