source: roaraudio/doc/man3/roar_simple_connect.3 @ 5032:b2c8bbc7907f

Last change on this file since 5032:b2c8bbc7907f was 5032:b2c8bbc7907f, checked in by phi, 13 years ago

some manpage correction

File size: 1.5 KB
Line 
1.\" roar_simple_play.3:
2
3.TH "roar_simple_connect" "3" "May 2011" "RoarAudio" "System Manager's Manual: RoarAudio"
4
5.SH NAME
6roar_simple_connect, roar_simple_connect2 \- Opens a connection to RoarAudio's sound server
7
8.SH SYNOPSIS
9
10#include <roaraudio.h>
11
12int roar_simple_connect (struct roar_connection * con, char * server, char * name);
13int roar_simple_connect2(struct roar_connection * con, char * server, char * name, int flags, uint_least32_t timeout);
14
15
16.SH "DESCRIPTION"
17This calls opens a connection to the RoarAudio's sound server.
18To disconnect use \fBroar_disconnect\fR(3).
19
20.SH "PARAMETERS"
21.TP
22\fBcon\fR
23The roar_connection object to be filled on success with all data needed for comunicating with the server.
24This is used by nearly all other functions.
25
26.TP
27\fBserver\fR
28The host or filename of the socket of the server. Should normaly be \fBNULL\fR to try default locations.
29
30.TP
31\fBname\fR
32The name of this client. Should be the name of the player without any paths or filenames.
33
34.TP
35\fBflags\fR
36Flags used to connect to the server. Currently only ROAR_ENUM_FLAG_NONE and ROAR_ENUM_FLAG_NONBLOCK are supported.
37ROAR_ENUM_FLAG_NONBLOCK disables some of the server location features.
38
39.TP
40\fBtimeout\fR
41Timeout for the connection. A value of zero means no timeout. Currently timeouts are not supported.
42
43.SH "RETURN VALUE"
44On success these calls return 0.  On error, \-1 is returned.
45
46.SH "EXAMPLES"
47FIXME
48
49.SH "SEE ALSO"
50\fBroar_disconnect\fR(3),
51\fBlibroar\fR(7),
52\fBRoarAudio\fR(7).
53
54.\" ll
Note: See TracBrowser for help on using the repository browser.