CIRCDCCChat.accept Member

Call to make this end accept DCC Chat with target user.

Syntax

object.accept();

Returns

Remarks

See Also

Source Code

function dchat_accept()
{
this.state.sendAccept();
this.connection = new CBSConnection();
if (this.connection.connect(this.remoteIP, this.port))
{
this.state.socketConnected();
if (jsenv.HAS_NSPR_EVENTQ)
this.connection.startAsyncRead(this);
else
this.eventPump.addEvent(new CEvent("dcc-chat", "poll",
this, "onPoll"));
}
else
{
this.state.failed();
}
return (this.state == DCC_STATE_ACCEPTED);
}