Valhalla Legends Archive

Programming => General Programming => Topic started by: noarch on February 22, 2003, 12:11 PM

Title: perl anyone?
Post by: noarch on February 22, 2003, 12:11 PM
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
Title: Re: perl anyone?
Post by: Etheran on February 22, 2003, 02:13 PM
That really can't be hard to find.....
Title: Re: perl anyone?
Post by: noarch on February 22, 2003, 02:16 PM
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.
Title: Re: perl anyone?
Post by: iago on February 22, 2003, 10:52 PM
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)