packing a C structure
- From: haairam@xxxxxxxxx
- Date: Thu, 25 Oct 2007 21:57:55 -0700
hi ,,,
iam trying to pack a C structure to send via socket..i would like to
know how to frame the template for the C structure..
this is my 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;
kindly suggest me the format for the pack function call..this will
help me to solve my issue...
.
- Follow-Ups:
- Re: packing a C structure
- From: Mark Clements
- Re: packing a C structure
- From: jl_post@xxxxxxxxxxx
- Re: packing a C structure
- From: Greg Bacon
- Re: packing a C structure
- From: Josef Moellers
- Re: packing a C structure
- Prev by Date: Re: configurable variables in own file?
- Next by Date: daemon in perl
- Previous by thread: FAQ 7.21 How do I redefine a builtin function, operator, or method?
- Next by thread: Re: packing a C structure
- Index(es):
Relevant Pages
|