// Kill stops a Tox instance. func (t *Tox) Kill() error { if t.tox == nil { return ErrBadTox } C.tox_kill(t.tox) return nil }
// Destroy a Tox instance. This will disconnect the instance from the Tox // network and release all other resources associated with it. The Tox pointer // becomes invalid and can no longer be used. func (tox *Tox) Destroy() { C.tox_kill(tox.handle) }