Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: How to sent binary data in socket programming ?

by golux (Chaplain)
on Jul 14, 2013 at 11:21 UTC ( [id://1044216]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $dir = "/data/input";
    my $data = `cat $dir/cdr-data.dat |sed 's/ //g'`;
    my $binary = pack ("H*", $data);
    
  2. or download this
        $hispaddr = recv(SOCKET, $rtime, 4, 0) || die "recv: $!";
    
  3. or download this
        $socket->recv($response, 1024);
        defined($response) || die "recv: $!";
    
  4. or download this
        $socket->recv($response, 1024) || die "recv: $!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1044216]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-03-28 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found