Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned char a, b, c, d;
- d = pIp4Array->AddrArray[0] & 0xFF;
- c = (pIp4Array->AddrArray[0] >> 8) & 0xFF;
- b = (pIp4Array->AddrArray[0] >> 16) & 0xFF;
- a = (pIp4Array->AddrArray[0] >> 24) & 0xFF;
- printf ("%u.%u.%u.%u", a, b, c, d);
- unsigned long IP
- printf("<%u.%u.%u.%u: <%s>>\r",
- IP&0xFF,
- (IP>> 8)&0xFF,
- (IP>> 16)&0xFF,
- (IP>> 24) & 0xFF,
- IP:inet_ntoa(DW.sin_addr.s_addr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement