in reply to Re^4: Need help with (un)pack templates
in thread Need help with (un)pack templates
It's pretty well spelled out in the pack documentation. C for unsigned char (byte), n for unsigned 16-bit short in network order, N for 32-bit long in network order, a for "arbitrary binary data".
Don't be confused by the 32-bit CCCC's, since an IP address is 4 8-bit numbers, not a 32-bit number.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Need help with (un)pack templates
by ikegami (Patriarch) on Dec 20, 2009 at 17:25 UTC | |
|
Re^6: Need help with (un)pack templates
by keszler (Priest) on Dec 20, 2009 at 15:06 UTC | |
by gmargo (Hermit) on Dec 20, 2009 at 17:08 UTC | |
|
Re^6: Need help with (un)pack templates
by Subop (Acolyte) on Dec 20, 2009 at 15:47 UTC |