11-11-2013
Firstly, thank you for your answer. But I have one question: what would you do to automate it?
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hello!
How I can increase or decrease predefined pipe buffer size?
System FreeBSD 4.9 and RedHat Linux 9.0
Thanks! (1 Reply)
Discussion started by: Jus
1 Replies
2. UNIX for Advanced & Expert Users
I'm very worried. I have an assignment that is due in 3 weeks, and also tute exercises which I can't seem to understand and work out.
Okay, the question:
The parent process will convert the command arguments into integer values using atoi() and store them into an integer array which you will... (2 Replies)
Discussion started by: scmay
2 Replies
3. Programming
I'm having difficulty understanding the purposes of using dup/dup2 when involving forks.
for example, if we call fork() once, that is, we are creating a child process. In what cases would we need to use dup or dup2 to duplicate the file descriptors for standard output and standard error? What... (1 Reply)
Discussion started by: Yifan_Guo
1 Replies
4. Programming
Hi,
i have in one program such a pice of code
................
static int old_stderr_handle = -1;
static int old_stdout_handle = -1;
log_handle = open(log_file_name,O_CREAT|O_RDWR,932);
old_stderr_handle = dup(STDERR_FILENO);
if (dup2(log_handle,STDERR_FILENO) < 0)
{
//... (1 Reply)
Discussion started by: vovan
1 Replies
5. UNIX for Advanced & Expert Users
int redirect()
{
int fd,rc;
fd = open("sample.DAT",O_CREAT | O_RDWR , 00777 );
rc = dup2(fd , 1 ) ;
close (fd );
return 0;
}
I used the above to redirect all the cout statements to sample.DAT. process is redirecting the output and I had two questions
1. All stdout/cout statements... (2 Replies)
Discussion started by: satish@123
2 Replies
6. Programming
Hi all,I'm reading <Advanced programming in the UNIX environment>,that book asked the reader to implement a function which has same functions with dup2 without calling fcntl.Could anyone give me a tip?Any help will be appreciated.:) (8 Replies)
Discussion started by: homeboy
8 Replies
7. Programming
Hello, I'm stuck and this is a matter which I need to resolve quite fast (but I couldn't post in the "Emergency" section); the problem is this :
I have created a chat program in which the client sends the sentence to the server and then the server should send it to all the clients connected,... (2 Replies)
Discussion started by: timmyyyyy
2 Replies
8. Programming
Hi, I will try to keep my post as compressed as my title was.
I am writing on pseudo code on a recursive function that I want to read from the one-above function-run and then give the result to the function-run down below until a stop is triggered. Example:
$ ls -la | grep x | sort
In my... (2 Replies)
Discussion started by: tarasque
2 Replies
9. UNIX for Advanced & Expert Users
is it possible to duplicate file descriptors(opened by a different process) with the help of dup or dup2. the two process do not share parent child relationship as well. (2 Replies)
Discussion started by: replytoshishir
2 Replies
10. Programming
What this code should do is: there are parent.cpp and child.cpp. Parent will send whatever is in the buffer to child and child will send back whatever received to parent. I do not know what I am doing wrong. I am confused what is missing in the parent and what else I should include into the child.... (1 Reply)
Discussion started by: ramono
1 Replies
LEARN ABOUT DEBIAN
exosip2_options
eXosip2 OPTIONS and UA capabilities Management(3) libeXosip2 eXosip2 OPTIONS and UA capabilities Management(3)
NAME
eXosip2 OPTIONS and UA capabilities Management -
Functions
int eXosip_options_build_request (osip_message_t **options, const char *to, const char *from, const char *route)
int eXosip_options_send_request (osip_message_t *options)
int eXosip_options_build_answer (int tid, int status, osip_message_t **answer)
int eXosip_options_send_answer (int tid, int status, osip_message_t *answer)
Detailed Description
Function Documentation
int eXosip_options_build_request (osip_message_t **options, const char *to, const char *from, const char *route)
Build a default OPTIONS message.
Parameters:
options Pointer for the SIP request to build.
to SIP url for callee.
from SIP url for caller.
route Route header for INVITE. (optional)
int eXosip_options_send_request (osip_message_t *options)
Send an OPTIONS request.
Parameters:
options SIP OPTIONS message to send.
int eXosip_options_build_answer (inttid, intstatus, osip_message_t **answer)
Build answer for an OPTIONS request.
Parameters:
tid id of OPTIONS transaction.
status status for SIP answer to build.
answer The SIP answer to build.
int eXosip_options_send_answer (inttid, intstatus, osip_message_t *answer)
Send answer for an OPTIONS request.
Parameters:
tid id of OPTIONS transaction.
status status for SIP answer to send.
answer The SIP answer to send. (default will be sent if NULL)
Author
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 3.1.0 Sun Jun 24 2012 eXosip2 OPTIONS and UA capabilities Management(3)