roar_simple_connect(3) System Manager's Manual: RoarAudio roar_simple_connect(3)NAME
roar_simple_connect, roar_simple_connect2 - Opens a connection to RoarAudio's sound server
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);
DESCRIPTION
This calls opens a connection to the RoarAudio's sound server. To disconnect use roar_disconnect(3).
PARAMETERS
con 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.
server The host or filename of the socket of the server. Should normaly be NULL to try default locations.
name The name of this client. Should be the name of the player without any paths or filenames.
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
FIXME
SEE ALSO roar_disconnect(3), libroar(7), RoarAudio(7).
RoarAudio May 2011 roar_simple_connect(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)
I wrote a server which creates a thread for every client connection. I have to include timeout function that will kill the server thread if the client doesn't respond for specific time. That too using signal(SIGALRM). For this i am using alarm() function.
When the server thread detects signal it... (1 Reply)
Hello UNIX users,
Thanks for helping me in my earlier post. Now, I am facing a timeout issue when ever I am transferring a zipped file from my server to client's server.
If the zipped file size is below 3 MB, it goes fine. Anything above that fails.
Below is the part of screenshot from... (1 Reply)
i am facing an issue that the server give a connection timeout after 60 sec for any request more than that number . i tried to increase the TCP INTERVAL TIMEOUT from the default 60000 ms to more higher number.
the server seems to work fine and didn't give me the massage of the timeout but the... (0 Replies)