I do not understand MSDN's documentation for it's member's at all. It ask for things I've never done before like the S_un_b
member needs The IPv4 address of the host formatted as four u_chars.
which doesn't really make sense to me unless it means something like type casting but I don't think that's it. Any examples, documentation, hints, tips, etc would be very greatly appreciated! :)
Asked
Active
Viewed 30 times
1

Edward Severinsen
- 81
- 2
- 14
1 Answers
2
The IPv4 address of the host formatted as four u_chars
means that the host address in IPv4 format (eg 209.81.97.0
) is stored as 4 consecutive unsigned char
s each being 8 bits wide.

Paul Evans
- 27,315
- 3
- 37
- 54
-
What about the other member `S_un_w The IPv4 address of the host formatted as two u_shorts.` – Edward Severinsen Oct 02 '15 at 00:58
-
@EdwardSeverinsen that would use 2 consecutive 16-bit `unsigned short`s for the 32-bit IPv4 host address – Paul Evans Oct 02 '15 at 01:06
-
I honestly have no clue. – Edward Severinsen Oct 02 '15 at 01:30
-
2Note that since it is a union, you only need to set one or the other, not both. – Harry Johnston Oct 02 '15 at 04:03
-
Oh thank you very much, I didn't know what that meant. XD – Edward Severinsen Oct 03 '15 at 00:15