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)
Check Out this Related Man Page
roar_connectionref(3) System Manager's Manual: RoarAudio roar_connectionref(3)NAME
roar_connectionref, roar_connectionunref - change reference counter for RoarAudio connections
SYNOPSIS
#include <roaraudio.h>
int roar_connectionref(struct roar_connection * con);
int roar_connectionunref(struct roar_connection * con);
#define roar_disconnect(x) roar_connectionunref((x))
DESCRIPTION
Those functions change the reference counter for connection objects previously opend via roar_connect(3), roar_connect_fh(3) or roar_sim-
ple_connect(3). If the reference counter hints zero the connection is closed and the object is destroyed.
The roar_disconnect(3) macro is provided to be source compatible (recompile needed) with RoarAudio 0.4 or older.
PARAMETERS
con The connection to be altered.
RETURN VALUE
On success these calls return 0. On error, -1 is returned.
EXAMPLES
FIXME
SEE ALSO roar_simple_connect(3), libroar(7), RoarAudio(7).
RoarAudio May 2011 roar_connectionref(3)
hi everybody !
i want create server/clients in c++
anyone can give me i little exemple for send a string ?
or give me a good site for explain.
thx (1 Reply)
Please m new around here! Can anyone take me thru implementing bootp on my thin clients via my central server?
Preciate ur assistance. Thanks folks! (2 Replies)
how can i read input to quit any time, for instance "type q to quit"
I have a script like this
echo "The first choice"
read firstChoice
echo "The second choice"
read secondChoice
Looking for a code to quit any time by pressing q to quit
any help would be appreciated
thanks (5 Replies)
hi,
i have a source code for 1 server and 2 clients ...but the clients are not able to send data..1 server only receives data from clients and forwards to any other client, the data is in the buffer.....please help... thank you in advance.....
/**********client1***************/
// Here Data... (1 Reply)
If I'm in Vi, write something then try to save & quit. :wq I get: "myvifile" "myvifile" E212: Can't open file for writing Press ENTER or type command to continue It won't let me save... Is it because other users on the network have access to the file also? Or I don't have permission to save? Thanks... (5 Replies)
hi guys i got this code trying to make connection between the server and multi clients but when i do ./server i got message server waiting then when i run ./client it says client 1 nosuch file i dont know whats that should i use any argument plz help how to compile and run and whats the expected... (1 Reply)
I'm using a while loop with an if statement. When the user choses a number, it will display a list of files. That works, the problem is q for quit won't exit script. How can I fix this? (10 Replies)
for a question like this
Assume you have a server with two clients and two child processes. The server retrieves data from the
children through a pipe (one each) and writes data to the clients through a socket (one each). child1
produces data for client1, and child2 for client2.
Write a C... (4 Replies)
Hi Gurus,
I am trying to write a script for checking the status of linux servers by connecting via telnet with port no but to terminate i have to manually type "quit" .how can i terminate the telnet session in script itself.For E.g
=========================================
telnet ipaddress... (3 Replies)
Hi,
I am quit satisfied with this scrtipt and really don't want to change anything but the end. I get a repetitve option when I want to "quit"
and don't know why. What am I missing? When I press q to quit
with this script, I get an EXTRA "Enter " How do I correct this so that when I
press... (1 Reply)
I have inherited and SCO OpenServer Release 6 server. The clients connect using telnet to get to a proprietary database application for Service tickets. The issue I am currently having is that the connection just stops abruptly and you can see "telnet session terminated" on the terminal emulation... (22 Replies)