Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Packing struct timeval

by zwon (Monsignor)
on Nov 24, 2012 at 10:16 UTC ( #1005355=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $timeout = pack( 'L!L!', $seconds, 0 );
    defined $socket->sockopt( SO_RCVTIMEO, $timeout )
      or die "Couldn't set timeout: $!";
    
  2. or download this
    use 5.010;
    use strict;
    ...
        tv.tv_usec = tv_usec;
        return newSVpv((char *) &tv, sizeof(struct timeval));
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1005355]
Approved by BrowserUk
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-08 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls