roar_connect(3)
NAME
roar_connect - connects to RoarAudio's sound server
SYNOPSIS
#include <roaraudio.h> int roar_connect(struct roar_connection * con, char * server);
DESCRIPTION
Connects to RoarAudio's sound server. This call just connects to the sound server without any auth or identify. Do not use this from end user applications. Use roar_simple_connect(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. This may be in form "host[:port]"
- (TCP/IP), "/path/to/sock" (UNIX Domain Socket) or any other supported. For a full list see roartips(7).
RETURN VALUE
On success these calls return 0. On error, -1 is returned.
EXAMPLES
See libroar/simple.c, roar_simple_connect(3).