SOL9 Sample: ProtocolInformation

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * ProtocolInformation.cpp 
 * Copyright (c) 2010 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: 6 Jan 2011

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