CIRCDCCState.sendDecline Member
Syntax
object.sendDecline();
Returns
Remarks
See Also
Source Code
function dccstate_sendDecline()
{
if ((this.state != DCC_STATE_REQUESTED) || (this.dir != DCC_DIR_GETTING))
throw "Must be in REQUESTED state and direction GET.";
// Clear out "last" incoming request if that's us.
if (this.parent.last == this.owner)
{
this.parent.last = null;
this.parent.lastTime = null;
}
clearTimeout(this.requestTimeout);
delete this.requestTimeout;
this.state = DCC_STATE_DECLINED;
this.declined = new Date();
this.eventPump.addEvent(new CEvent(this.eventType, "decline",
this.owner, "onDecline"));
}