int aw_universe_ejection_previous (void)

DESCRIPTION

Looks up previous blocked IP address in universe ejection database.

CALLBACK

AW_CALLBACK_UNIVERSE_EJECTION

NOTES

This method  requires at least SDK build 14 and universe server  build 22. 

Only instances owned by the root account (citizen #1) may use aw_universe_ejection_previous.

The attribute AW_EJECTION_ADDRESS specifies the IP address (in network byte order) from which to scan backwards through the database.

If aw_universe_ejection_previous succeeds, the following attributes are returned:

AW_EJECTION_ADDRESS The (previous) blocked IP address
AW_EJECTION_CREATION_TIME When the ejection was first created *
AW_EJECTION_EXPIRATION_TIME When the ejection expires
AW_EJECTION_COMMENT Additional text information (optional) *

* These ejection attributes are new in Active Worlds 3.0 and require at least SDK build 16 and universe server build 23.

EXAMPLE

/* list all addresses currently blocked from the universe in reverse order */

aw_int_set (AW_EJECTION_ADDRESS, 0xffffffff);
while (!aw_universe_ejection_previous ()) {
  int address;
  address = aw_int (AW_EJECTION_ADDRESS);
  printf ("%-15s %d\n", inet_ntoa (*(struct in_addr*) &address),
    aw_int (AW_EJECTION_EXPIRATION_TIME));
}

SEE ALSO

aw_universe_ejection_add
aw_universe_ejection_delete
aw_universe_ejection_lookup
aw_universe_ejection_next