AW AVATAR ADDRESS
Jump to navigation
Jump to search
Minimum requirements | ||
---|---|---|
Added in version 2.2 | ||
SDK | build 15 | |
World | build 21 | |
Browser | build 303 |
AW_AVATAR_ADDRESS
Type
Integer (read only)
Description
IP address of a user.
Notes
The IP address is given in network byte order (i.e. the most significant byte is stored first in memory).
Usage
Print an address to console.
void print_address (int address) { unsigned char buf[4]; memcpy (&buf, &address, sizeof (buf)); printf ("IP address: %u.%u.%u.%u\n", buf[0], buf[1], buf[2], buf[3]); } print_address (aw_int (AW_AVATAR_ADDRESS);
See aw_address for an example of how to use this attribute.