CIRCDCCState.sendAccept Member
Syntax
object.sendAccept();
Returns
Remarks
See Also
Source Code
function dccstate_sendAccept()
{
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_ACCEPTED;
this.accepted = new Date();
this.eventPump.addEvent(new CEvent(this.eventType, "accept",
this.owner, "onAccept"));
}