Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

roar_connectionref(3) [debian man page]

roar_connectionref(3)					System Manager's Manual: RoarAudio				     roar_connectionref(3)

NAME
roar_connectionref, roar_connectionunref - change reference counter for RoarAudio connections SYNOPSIS
#include <roaraudio.h> int roar_connectionref(struct roar_connection * con); int roar_connectionunref(struct roar_connection * con); #define roar_disconnect(x) roar_connectionunref((x)) DESCRIPTION
Those functions change the reference counter for connection objects previously opend via roar_connect(3), roar_connect_fh(3) or roar_sim- ple_connect(3). If the reference counter hints zero the connection is closed and the object is destroyed. The roar_disconnect(3) macro is provided to be source compatible (recompile needed) with RoarAudio 0.4 or older. PARAMETERS
con The connection to be altered. RETURN VALUE
On success these calls return 0. On error, -1 is returned. EXAMPLES
FIXME SEE ALSO
roar_simple_connect(3), libroar(7), RoarAudio(7). RoarAudio May 2011 roar_connectionref(3)

Check Out this Related Man Page

roar_connect(3) 					System Manager's Manual: RoarAudio					   roar_connect(3)

NAME
roar_connect, roar_connect2 - connects to RoarAudio's sound server SYNOPSIS
#include <roaraudio.h> int roar_connect(struct roar_connection * con, char * server); int roar_connect2 (struct roar_connection * con, char * server, int flags, uint_least32_t timeout); DESCRIPTION
Connects to RoarAudio's sound server. This calls just connects to the sound server without any authentication or identify. Do not use this from end user applications. Use roar_simple_connect(3) or roar_simple_connect2(3). PARAMETERS
con The connection object to be filled with the data needed to talk to the server used by nearly all other calls. server The server to connect to. flags Flags used to connect to the server. Currently only ROAR_ENUM_FLAG_NONE and ROAR_ENUM_FLAG_NONBLOCK are supported. ROAR_ENUM_FLAG_NONBLOCK disables some of the server location features. timeout Timeout for the connection. A value of zero means no timeout. Currently timeouts are not supported. RETURN VALUE
On success these calls return 0. On error, -1 is returned. EXAMPLES
See libroar/simple.c, roar_simple_connect(3). SEE ALSO
roar_simple_connect(3), libroar(7), RoarAudio(7). RoarAudio May 2011 roar_connect(3)
Man Page