Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

roar_exit(3) [debian 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)

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)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

socket

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)
Discussion started by: mercutio
1 Replies

2. IP Networking

Openserver File server

How can I configure my Unix sco openserver 5 to do a file server for MS Windows clients? (1 Reply)
Discussion started by: Jeedy
1 Replies

3. Linux

BOOTP on HP Thin clients

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)
Discussion started by: chuk_uka
2 Replies

4. Shell Programming and Scripting

quit any time

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)
Discussion started by: Qwond
5 Replies

5. UNIX for Dummies Questions & Answers

socket programming using udp for chat application

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)
Discussion started by: unsweety
1 Replies

6. UNIX for Dummies Questions & Answers

Vi, write something then try to save & quit.

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)
Discussion started by: JudoMan
5 Replies

7. Programming

Help with socket programming in C

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)
Discussion started by: kedah160
1 Replies

8. UNIX for Dummies Questions & Answers

Enter q for quit not working

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)
Discussion started by: smiley76112
10 Replies

9. Programming

Help with C programming

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)
Discussion started by: omega666
4 Replies

10. UNIX for Dummies Questions & Answers

How to disconnect telnet prompt with port no in script.

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)
Discussion started by: kapil514
3 Replies

11. Shell Programming and Scripting

Repetitive ending of script

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)
Discussion started by: jefferj54
1 Replies

12. SCO

Telnet session disconnects abruptly

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)
Discussion started by: sean6605
22 Replies