Sophie

Sophie

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

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_open</TITLE>
<META NAME="description" CONTENT="bnet_open">
<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_send.html">
<LINK REL="previous" HREF="bnet_Threads.html">
<LINK REL="up" HREF="TCP_IP_Network_Protocol.html">
<LINK REL="next" HREF="bnet_send.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1671"
  HREF="bnet_send.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1665"
  HREF="TCP_IP_Network_Protocol.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1659"
  HREF="bnet_Threads.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1667"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1669"
  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="tex2html1672"
  HREF="bnet_send.html">bnet_send</A>
<B> Up:</B> <A NAME="tex2html1666"
  HREF="TCP_IP_Network_Protocol.html">TCP/IP Network Protocol</A>
<B> Previous:</B> <A NAME="tex2html1660"
  HREF="bnet_Threads.html">bnet and Threads</A>
 &nbsp; <B>  <A NAME="tex2html1668"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1670"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001830000000000000000"></A>
<A NAME="6229"></A>
<BR>
bnet_open
</H1>

<P>
To establish a connection to a server, use the subroutine: 

<P>
BSOCK *bnet_open(void *jcr, char *host, char *service, int port,  int *fatal)
bnet_open(), if successful, returns the Bacula sock descriptor pointer to be
used in subsequent bnet_send() and bnet_read() requests. If not successful,
bnet_open() returns a NULL. If fatal is set on return, it means that a fatal
error occurred and that you should not repeatedly call bnet_open(). Any error
message will generally be sent to the JCR. 

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

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