SOL9 Sample: NetServerTransport
|
1 Screenshot
2 Source code
/*
* NetServerTransport.cpp
* Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
#include <sol/nm/NetServerTransport.h>
#include <sol/nm/ServerTransportInfo0.h>
//#include <sol/nm/ServerTransportInfo1.h>
#include <sol/Locale.h>
void _tmain(int argc, TCHAR** argv)
{
Locale locale;
try {
wchar_t* server = NULL;
NetServerTransport netServerTransport(server);
ServerTransportInfo0 info0;
netServerTransport.enumerate(info0);
info0.display();
printf("\n");
/*
netServerTransport.enumerate(info1);
info1.display();
printf("\n");
*/
} catch (...) {
printf("Exception \n");
}
printf("OK. Please hit [enter] key\n");
getchar();
}
Last modified: 2 May 2016
Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.