Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Questions with a TCP stream protocol (POE, code)

by chromatic (Archbishop)
on Dec 16, 2001 at 07:14 UTC ( #132297=note: print w/replies, xml ) Need Help??


in reply to Questions with a TCP stream protocol (POE, code)

In this code snippet:
# lop off the event code and the length, the hacker has it in the obje +ct. if ($length and (length $little_e >= 4 + $length)) { $body = substr($little_e, 4, $length);
Do you actually mean:

$body = substr($little_e, 4, $length, '');

The substr earlier looks a little suspicious, too. I'd use the four argument form in both places.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2021-10-25 17:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?