Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 romping around the Monastery: (4)
As of 2023-06-05 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (24 votes). Check out past polls.

    Notices?