mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0fab880126
commit
351994a6cc
2823 changed files with 619073 additions and 0 deletions
19
uppdev/NetEnum/NetEnum.cpp
Normal file
19
uppdev/NetEnum/NetEnum.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <Core/Core.h>
|
||||
#include <winnetwk.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
void EnumNetwork(const Array<NetNode>& nn)
|
||||
{
|
||||
LOGBEGIN();
|
||||
for(int i = 0; i < nn.GetCount(); i++) {
|
||||
const NetNode& m = nn[i];
|
||||
EnumNetwork(m.Enum());
|
||||
}
|
||||
LOGEND();
|
||||
}
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
EnumNetwork(NetNode::EnumRoot());
|
||||
}
|
||||
9
uppdev/NetEnum/NetEnum.upp
Normal file
9
uppdev/NetEnum/NetEnum.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
NetEnum.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Reference in a new issue