Ted Mittelstaedt wrote:
OK since nobody helped me (sniff, sniff) I had to figure it out myself.

Here is the problem code in the fragment:

$sockaddr = 'S n a4 x8';

replacing it with

$sockaddr = 'x C n a4 x8';

fixed the problem. The template for the pack command was wrong.

Th first two bytes are length (0) and family, both of which are unsigned
char, so 'x C' (or 'n') handles those.

Why is 'x8' at the end of that string? Do you know what is does and why it is there?

Have you read and of W. Richard Stevens' books?



John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to