Re: packing a C structure

2007-10-26 Thread Chas. Owens
On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi,, > > iam new to perl..i would like to pack a C structure to send it via > socket > > this is my C structure > > typedef struct buffer_t { > uint32_t a; > char b[16]; > uint32_t c; > uint32_t d; > char e[6]; > char f[8];

Re: packing a C structure

2007-10-26 Thread Jeff Pang
On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > can u provide a guideline for the format in the Pack command that i > need to use... > > Hi, Consider to read `perldoc -f pack` at first which maybe will help you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

packing a C structure

2007-10-26 Thread haairam
hi,, iam new to perl..i would like to pack a C structure to send it via socket this is my C structure typedef struct buffer_t { uint32_t a; char b[16]; uint32_t c; uint32_t d; char e[6]; char f[8]; } buffer_t; can u provide a guideline for the format in the Pack command that i