<!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>Becoming a Server</TITLE> <META NAME="description" CONTENT="Becoming a Server"> <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="Higher_Level_Conventions.html"> <LINK REL="previous" HREF="bnet_close.html"> <LINK REL="up" HREF="TCP_IP_Network_Protocol.html"> <LINK REL="next" HREF="Higher_Level_Conventions.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html1783" HREF="Higher_Level_Conventions.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html1777" HREF="TCP_IP_Network_Protocol.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html1771" HREF="bnet_close.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html1779" HREF="Contents.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html1781" 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="tex2html1784" HREF="Higher_Level_Conventions.html">Higher Level Conventions</A> <B> Up:</B> <A NAME="tex2html1778" HREF="TCP_IP_Network_Protocol.html">TCP/IP Network Protocol</A> <B> Previous:</B> <A NAME="tex2html1772" HREF="bnet_close.html">bnet_close</A> <B> <A NAME="tex2html1780" HREF="Contents.html">Contents</A></B> <B> <A NAME="tex2html1782" HREF="GNU_Free_Documentation_Lice.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION0018110000000000000000"></A> <A NAME="6283"></A> <A NAME="6284"></A> <BR> Becoming a Server </H1> <P> The bnet_open() and bnet_close() routines described above are used on the client side to establish a connection and terminate a connection with the server. To become a server (i.e. wait for a connection from a client), use the routine <B>bnet_thread_server</B>. The calling sequence is a bit complicated, please refer to the code in bnet_server.c and the code at the beginning of each daemon as examples of how to call it. <P> <BR><HR> <ADDRESS> 2010-06-14 </ADDRESS> </BODY> </HTML>