alarm() is used to generate the SIGALRM signal after specified seconds, if the connect call succeeds then the alarm is reset, else it generates the alarm and returns.
I have some problem with the SIGALRM. I have a multithreaded program in which each thread contains a object which implements a timed tcpconnect function as shown below:
////////////////////////////////////////////
static void connect_alarm(int signo)
{
cout<<"\nConnect_alarm .... .. Time...
hi,
I have written a client/server program using pthread. After I get a client connection request, I create a thread for that client(detached thread with system scope).
The start routine that is specified in the pthread_create function creates a object of a class and calls a function in that...
hi,
I am not able to compile a program(threads related code) which calls pthread_create,pthread_join ... and other pthread routines. It says "undefined reference to pthread_create...(all these funcetions)". I have included pthread.h header. What is wrong here?
Hi,
I have a 20GB harddisk, now want to install one more 40GB HDD as a slave to this.
1. How can I find out the maximum capacity that my motherboard can support.
2. I have installed lots of sofwares in the D: drive of my present 20GB HDD, If I install the new HDD as a slave the...
Why is string class not accepted in latest gcc-c++ compiler. Actually I was using Redhat linux 7.1 and had coded using standard string objects. I recently installed Redhat Linux 8.0, when I compiled the same code it gave list of errors which was all related to using string objects. It says...
I have created two panels in my container, each panel add an object of two different classes. One class extends JFrame and implements ActionListener and other class extends JSplitPane and extends ListSelectionListener. My problem now is that when I add both the panels in the container the output...
hi,
I have some problem in sending mail using perl. I used the following perl script to send the mail using my smtp server.
###########################
use Mail::Sender;
ref ($sender = new Mail::Sender { from => 'somebody@somewhere.com',
smtp => 'mail.yourISP.com', boundary =>...
hi,
I have a problem with cookies in perl. I have created the cookie in the following way :
-----------------
my $cgi = new CGI;
my $cookie= $cgi->cookie(-name=>"usrid",
-value=>"usname",
-path=>"/cgi-bin/")...
Where can I get the mod_perl-2 binaries ? I checked out some of the binaries but that didn't work (from the site http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-2.ppd), this binary is not meant for MSWin32-x86-multi-thread. Please help!
I am creating a web application (using CGI perl) where in I have lot of links on a page which, each link will run the same cgi script to retrive different data from the database.It takes lot of time each time to connect to the database and retrive, so I want a way where in I can connect to the...
I have problem in setting up PHP as cgi executable.I am using apache sever. I have followed the steps for installing PHP as cgi executable (i.e., installing without the -- with-apxs option).The PHP programs work fine through apache server when referenced in the htdocs directory,but fails when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.