Description
Pings a user and returns the total roundtrip time in seconds.
Callback
BONE_CALLBACK_PING
Notes
The function parameter is the BONEHANDLE and the username to ping.
Example
bone_setcallback(BONE_CALLBACK_PING, callback_ping);
BONEHANDLE bnd;
//create and login BONEHANDLE here
if (bone_pinguser(bnd, "ima"))
printf("Unable to ping user (reason %d).\n", bone_getlasterror());
void callback_ping(BONEHANDLE bhnd, const char *name, int delay)
{
printf("Ping reply from %s: %d second(s).\n",name,delay);
}