Example #1
0
void SuiteListen::Test()
{
//    Debug::SetLevel(Debug::kSsdpMulticast);
    SsdpNotifyLoggerM notifyLogger;
    MSearchLogger msearchLogger;
    SsdpListenerMulticast mListener(NetworkIf(iInterfaceIndex));
    TInt notifyId = mListener.AddNotifyHandler(&notifyLogger);
    TInt msearchId = mListener.AddMsearchHandler(&msearchLogger);
    mListener.Start();
    iTimer->FireIn(iDuration);
    iSem.Wait();
    mListener.RemoveNotifyHandler(notifyId);
    mListener.RemoveMsearchHandler(msearchId);
}
Example #2
0
void MicrosecondTimer::Expired()
{
    iExpired = true;
    iTimer.FireIn(100);
}