File: roar_stream_connect_to.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,489 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_stream_connect_to" "3" "May 2011" "RoarAudio" "System Manager's Manual: RoarAudio"

.SH NAME
roar_stream_connect_to \- Connects a stream to some listening socket

.SH SYNOPSIS

#include <roaraudio.h>

int roar_stream_connect_to(struct roar_connection * con, struct roar_stream * s, int type, char * host, int port);

.SH "DESCRIPTION"
This let the sound server connect to some remote end to get it's data for a stream.
This is used internaly to open additional streams for \fBroar_simple_new_stream\fR(3).

\fBNOTE:\fR
This is not an alternative version of \fBroar_stream_connect\fR(3). You still need to connect the stream to the server via
\fBroar_stream_connect\fR(3) before you can use this call.

.SH "PARAMETERS"
.TP
\fBcon\fR
The connection to the server.

.TP
\fBs\fR
The stream to connect.

.TP
\fBtype\fR, \fBhost\fR, \fBport\fR
Where the stream should be connected to.
For a description of all these parameters see \fBroar_socket_listen\fR(3).

.SH "NOTES"
This call will block until the server process to connect to has accepted the connection.
This makes this call unusable to connect back to us if we are not threaded. For a nonblocking call
see \fBroar_stream_connect_to_ask\fR(3).

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

.SH "EXAMPLES"
FIXME

.SH "SEE ALSO"
\fBroar_simple_new_stream\fR(3),
\fBroar_stream_connect\fR(3),
\fBroar_socket_listen\fR(3),
\fBlibroar\fR(7),
\fBRoarAudio\fR(7).

.\" ll