| SOL9 2.0 Sample: IPInterfaceChangeNotifier |
/*
* IPInterfaceChangeNotifier.cpp
* Copyright (c) 2009 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
#include <sol/net/IPInterfaceChangeNotifier.h>
void _tmain(int argc, TCHAR** argv)
{
try {
HWND hwnd = NULL;
IPInterfaceChangeNotifier notifier(hwnd);
notifier.start();
while (1) {
Sleep(1000);
}
} catch (...) {
printf("Exception\n");
}
}
|