SOL9 Sample: ProtocolInformation

SOL9 2.0 Samples

1 Screenshot


2 Source code

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



// SOL9 2.0


#include <sol/net/ProtocolInformation.h>
#include <sol/WSAInitializer.h>
#include <sol/Locale.h>

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

  try {

    ProtocolInformation info;
    int count = info.enumerate();
    _tprintf(_T("ProtocolInformation count=%d\n"), count);

    info.display();

  } catch (Exception& ex) {
    ex.printf();
  } catch (...) {
    printf("Exception\n");
  }
}

Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.