Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > df754e4e6f7f5fc8ab9d6ed8559f3e3d > files > 109

bacula-docs-5.0.3-19.fc16.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>bnet_send</TITLE>
<META NAME="description" CONTENT="bnet_send">
<META NAME="keywords" CONTENT="developers">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="developers.css">

<LINK REL="next" HREF="bnet_fsend.html">
<LINK REL="previous" HREF="bnet_open.html">
<LINK REL="up" HREF="TCP_IP_Network_Protocol.html">
<LINK REL="next" HREF="bnet_fsend.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1685"
  HREF="bnet_fsend.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1679"
  HREF="TCP_IP_Network_Protocol.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1673"
  HREF="bnet_open.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1681"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1683"
  HREF="GNU_Free_Documentation_Lice.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1686"
  HREF="bnet_fsend.html">bnet_fsend</A>
<B> Up:</B> <A NAME="tex2html1680"
  HREF="TCP_IP_Network_Protocol.html">TCP/IP Network Protocol</A>
<B> Previous:</B> <A NAME="tex2html1674"
  HREF="bnet_open.html">bnet_open</A>
 &nbsp; <B>  <A NAME="tex2html1682"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1684"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001840000000000000000"></A>
<A NAME="6234"></A>
<BR>
bnet_send
</H1>

<P>
To send a packet, one uses the subroutine: 

<P>
int bnet_send(BSOCK *sock) This routine is equivalent to a write() except
that it handles the low level details. The data to be sent is expected to be
in sock-msg and be sock-msglen bytes. To send a packet, bnet_send()
first writes four bytes in network byte order than indicate the size of the
following data packet. It returns: 

<P>
<PRE>
 Returns 0 on failure
 Returns 1 on success
</PRE>
<P>
In the case of a failure, an error message will be sent to the JCR contained
within the bsock packet. 

<P>
<BR><HR>
<ADDRESS>

2012-01-24
</ADDRESS>
</BODY>
</HTML>