SOL9 Sample: NetServer

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * NetServer.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


#include <sol/nm/NetServer.h>

#include <sol/nm/ServerInfo100.h>
#include <sol/nm/ServerInfo101.h>

#include <sol/Locale.h>

void _tmain(int argc, TCHAR** argv)
{
  Locale locale;

  try {
    wchar_t* server = NULL;
    wchar_t* domain = NULL;

    NetServer netServer(server);

    ServerInfo100 info100;
    ServerInfo101 info101;


    netServer.enumerate(domain, info100);
    info100.display();
    printf("\n");
    
    netServer.enumerate(domain, info101);
    info101.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.