• Welcome to Valhalla Legends Archive.
 

perl anyone?

Started by noarch, February 22, 2003, 12:11 PM

Previous topic - Next topic

noarch

If anyone knows a little about perl maybe you could help. I can't figure out how to output the data recieved through a socket... ie the data being sent from the server to the client.

noarch

Etheran

#1
That really can't be hard to find.....

noarch

#2
It's not, but making the function work is.
recv SOCKET,SCALAR,LEN,FLAGS Receives a message on a socket.
however I'm confused on how to determine the length, and/or if I can put it in an array.

iago

#3
Wouldn't the Scalar be where the data is put?  And maybe the length is an output rather than an input, or maybe if you set length to 0 it would recieve infinite (although you should probably specify the length of your array or fear buffer overrun hacks)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*