ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
AW_CALLBACK_ADDRESS in VB (Sdk)
AW_CALLBACK_ADDRESS in VB // SdkbaronMar 10, 2001, 9:48pm
Can anyone explain how to use AW_CALLBACK_ADDRESS in VB? It seems to be the only way to get an IP on avatar_add since there might be many avatars present when the bot enters so it will call aw_address numerous times without waiting for a responce. The only way to distinguish the world server responses is the AW_AVATAR_SESSION returned in the callback. I currently do this by adding session#s to an array and call aw_address for each of them with a loop, adding the returned IP to the array, but on slow connections the results are sometimes added wrong.
From SDK documentation: If session_id corresponds to a valid session number and the calling instance is authorized to call aw_address, the following attributes are returned: AW_AVATAR_SESSION AW_AVATAR_ADDRESS AW_AVATAR_SESSION specifies the requested session number; this is useful for determining which callback is for which request if multiple asynchronous calls to aw_address are outstanding. AW_AVATAR_ADDRESS specifies the IP address of the user in network byte order. Baron |