private void VirtualEvents_Connected(int iCode, string sLine, VirtualNNTP sender) { if (iCode != 0) { LastGroup = null; } if (!SendNext()) { Fail(965, "SendNext"); } }
private void VirtualEvents_Response(int NNTPCode, string sLine, VirtualNNTP sender) { if ((cCommand != null) && (CommandOK(NNTPCode))) { if (NNTPCode == (int)NNTPCodes.GroupSelected) { LastGroup = cCommand.Current.ToLower(); } if (cCommand.Finished) { Done(Common.GetStream(sLine)); return; } else { if (SendNext()) { return; } Fail(966, "SendNext"); return; } } switch (NNTPCode) { case (int)NNTPCodes.GroupNotFound: case (int)NNTPCodes.NoGroupSelected: { LastGroup = null; break; } } switch (NNTPCode) { case (int)NNTPCodes.NoNext: case (int)NNTPCodes.NoPrevious: case (int)NNTPCodes.IDNotFound: case (int)NNTPCodes.NumberNotFound: case (int)NNTPCodes.GroupNotFound: case (int)NNTPCodes.NoGroupSelected: case (int)NNTPCodes.NoArticleSelected: case (int)NNTPCodes.PostingFailed: case (int)NNTPCodes.PostingNotAllowed: { LastGroup = null; Fail(NNTPCode, sLine); return; } } LastGroup = null; if (NNTPCode <= 0) { NNTPCode = 991; } base.Disconnect(NNTPCode, sLine, true); }
private void VirtualEvents_Closed(VirtualNNTP sender) { LastGroup = null; }
private void VirtualEvents_Failed(int iCode, string sError, string sLog, VirtualNNTP sender) { Fail(iCode, sError, sLog); }
private void VirtualEvents_Received(System.IO.Stream sData, VirtualNNTP sender) { Done(sData); }