File: roar_simple_connect.3

package info (click to toggle)
roaraudio 1.0~beta12-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 6,160 kB
  • sloc: ansic: 79,658; sh: 2,837; makefile: 805; perl: 87
file content (54 lines) | stat: -rw-r--r-- 1,511 bytes parent folder | download | duplicates (3)
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
.\" roar_simple_play.3:

.TH "roar_simple_connect" "3" "May 2011" "RoarAudio" "System Manager's Manual: RoarAudio"

.SH NAME
roar_simple_connect, roar_simple_connect2 \- Opens a connection to RoarAudio's sound server

.SH SYNOPSIS

#include <roaraudio.h>

int roar_simple_connect (struct roar_connection * con, char * server, char * name);
int roar_simple_connect2(struct roar_connection * con, char * server, char * name, int flags, uint_least32_t timeout);


.SH "DESCRIPTION"
This calls opens a connection to the RoarAudio's sound server.
To disconnect use \fBroar_disconnect\fR(3).

.SH "PARAMETERS"
.TP
\fBcon\fR
The roar_connection object to be filled on success with all data needed for comunicating with the server.
This is used by nearly all other functions.

.TP
\fBserver\fR
The host or filename of the socket of the server. Should normally be \fBNULL\fR to try default locations.

.TP
\fBname\fR
The name of this client. Should be the name of the player without any paths or filenames.

.TP
\fBflags\fR
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.

.TP
\fBtimeout\fR
Timeout for the connection. A value of zero means no timeout. Currently timeouts are not supported.

.SH "RETURN VALUE"
On success these calls return 0.  On error, \-1 is returned.

.SH "EXAMPLES"
FIXME

.SH "SEE ALSO"
\fBroar_disconnect\fR(3),
\fBlibroar\fR(7),
\fBRoarAudio\fR(7).

.\" ll