public void Stop()
{
m_stopping = true;
}
/// <summary> /// Respond to the Stop command by signaling the polling-loop to terminate, /// and if there're no sockets left to reap - stop the poller. /// </summary> protected override void ProcessStop() { m_terminating = true; // If there are no sockets being reaped finish immediately. if (m_sockets == 0) { SendDone(); m_poller.RemoveHandle(m_mailboxHandle); m_poller.Stop(); } }