CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
Sockets problem


New User

May 3, 2002, 3:39 AM

Post #1 of 1 (2460 views)
Sockets problem Can't Post


I need some help with a sockets problem. I have a string eg "123123hello" that I convert to 16 bit using the pack and unpack functions.

I add this to an array and send it over the wire ... okay.

But my problem is that I need to add a hex bit (0x00) before and after the packet and I don't know exactly how to do this. I've tried adding \x00 to the start and end of the array but it gets sent as the letter S.

Anyone help ???



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives