1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
<!--
$NCDId: @(#)AuOpSer.man,v 1.1 1994/09/27 00:33:32 greg Exp $
copyright 1994 Steven King
portions are
* Copyright 1993 Network Computing Devices, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name Network Computing Devices, Inc. not be
* used in advertising or publicity pertaining to distribution of this
* software without specific, written prior permission.
*
* THIS SOFTWARE IS PROVIDED 'AS-IS'. NETWORK COMPUTING DEVICES, INC.,
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT
* LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NONINFRINGEMENT. IN NO EVENT SHALL NETWORK
* COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING
* SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE, DATA,
* OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND REGARDLESS OF
* WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
$Id: AuOpenServer.3.html 243 2007-04-07 23:13:43Z jon $
-->
<!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
<!-- available at http://polyglotman.sourceforge.net/ -->
<html>
<head>
<title>AuOpenServer(3) manual page</title>
</head>
<body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
<a href='#toc'>Table of Contents</a><p>
<h2><a name='sect0' href='#toc0'><b>Name</b></a></h2>
<b>AuOpenServer</b> - connect to audio server
<h2><a name='sect1' href='#toc1'><b>Synopsis</b></a></h2>
#include
<audio/audiolib.h> <p>
AuServer *<b>AuOpenServer</b>(<i>servername</i>, <i>num_authproto</i>, <i>authproto</i>,
<i>num_authdata</i>, <i>authdata</i>, <i>ret_status</i>) <br>
char *<i>servername</i>;<br>
<br>
int <i>num_authproto</i>;<br>
<br>
char *<i>authproto</i>;<br>
<br>
int <i>num_authdata</i>;<br>
<br>
char *<i>authdata</i>;<br>
<br>
char **<i>return_status</i>; /* <b>RETURN</b> */<br>
<h2><a name='sect2' href='#toc2'><b>Arguments</b></a></h2>
<dl>
<dt><i>servername</i></dt>
<dd>Specifies the audio server name. This determines the
server and communications domain to be used. </dd>
<dt><i>num_authproto</i></dt>
<dd>Specifies the
length of the connection authorization protocol name. </dd>
<dt><i>authproto</i></dt>
<dd>Specifies
the name of the connection authorization protocol. </dd>
<dt><i>num_authdata</i></dt>
<dd>Specifies
the length of the connection authorization data. </dd>
<dt><i>authdata</i></dt>
<dd>Specifies the connection
authorization data. </dd>
<dt><i>return_status</i></dt>
<dd>If non-NULL, and the connection is refused,
returns an error message. </dd>
</dl>
<h2><a name='sect3' href='#toc3'><b>Description</b></a></h2>
<b>AuOpenServer</b> creates a connection to
the specified audio server and returns a pointer to an <b>AuServer</b> structure
or NULL, with <i>return_status</i> (if non-NULL) pointing to an error message describing
the reason, if it was unsuccessfull. <p>
If <i>servername</i> is NULL or a pointer
to NUL, <b>AuOpenServer</b> get the value from the enviroment. <i>servername</i> has the
format <i>hostname</i>:<i>port</i> or <i>hostname</i>::<i>port</i>. If a double colon (::) separates
the hostname and port number, <b>AuOpenServer</b> connects using DECnet streams.
If a single colon (:) separates the hostname and port number, and the hostname
is a host machine name, <b>AuOpenServer</b> connects using TCP streams. If a single
colon (:) separates the hostname and port number, and the hostname is "unix",
<b>AuOpenServer</b> connects using UNIX domain sockets (or Streams). If the hostname
is not specified, <b>AuOpenServer</b> uses whatever it believes is the fastest
transport.
<h2><a name='sect4' href='#toc4'><b>See Also</b></a></h2>
<b>AuCloseServer</b>, <b>AuServerName</b>. <p>
audiolib - <b>Network Audio System</b>
C Language Interface <p>
<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Arguments</a></li>
<li><a name='toc3' href='#sect3'>Description</a></li>
<li><a name='toc4' href='#sect4'>See Also</a></li>
</ul>
</body>
</html>
|