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_exit(3) System Manager's Manual: RoarAudio roar_exit(3)NAME
roar_exit - let RoarAudio's sound server quit
roar_terminate - let RoarAudio's sound server quit as soon as all clients quit
SYNOPSIS
#include <roaraudio.h>
int roar_exit(struct roar_connection * con);
int roar_terminate(struct roar_connection * con, int terminate);
DESCRIPTION
Ask the sound server to quit.
roar_exit() let the server quit without waiting for any clients. All streams and client connections will be closed cleanly.
roar_terminate() will let the server quit as soon as all clients disconnects and all input streams ended. The listening socket will be
closed. This is useful in case of restarting roard.
PARAMETERS
con An open controll connection to the server.
terminate
Wait for all clients to disconnect and all streams to EOF in case of 1. In case of 0 roar_terminate() is equal to roar_exit().
RETURN VALUE
On success these calls return 0. On error, -1 is returned.
NOTES
Even when the call was successfull you have to use roar_disconnect(3) to disconnect from the server.
EXAMPLES
FIXME
SEE ALSO roar_disconnect(3), libroar(7), RoarAudio(7).
RoarAudio May 2011 roar_exit(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)