Aw universe ejection delete

From ActiveWiki
Revision as of 11:53, 26 October 2008 by Macavity (talk | contribs) (Added in, cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Minimum requirements
Added in version 2.2
SDKbuild 14
Universebuild 22


int aw_universe_ejection_delete (int address)

Description

Unblocks a previously blocked IP address from the universe.

Callback

AW_CALLBACK_UNIVERSE_EJECTION_RESULT

Notes

Only instances owned by the root account (citizen #1 - universe administrators) may use this method.

Arguments

address
Not used.

Argument attributes

AW_EJECTION_ADDRESS
IP address to be unblocked (in network byte order).

Return values

RC_SUCCESS (1) (2)
RC_NOT_INITIALIZED (1)
RC_NO_INSTANCE (1)
RC_NO_CONNECTION (1)
The connection to the universe is down.
RC_DATABASE_ERROR (2)

(1) Possible return values when a callback is installed.

(2) Returned by the universe server.

Returned attributes

AW_EJECTION_ADDRESS

Usage

Unblock a class C address from the universe.

if (aw_universe_ejection_delete (inet_addr ("241.197.54.0")) != RC_SUCCESS)
  printf ("Unable to delete ejection\n");

See also