Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::NetworkKit Class Reference

The NetworkKit class is used to initialize the NetworkKit runtime. More...

#include <vcf/NetworkKit/NetworkKit.h>

List of all members.

Static Public Member Functions

static void init (int argc, char **argv)
 Initialization takes place here, plus creating the various system resources and peer instances.
static void terminate ()
 Frees up any resources allocated in the NetworkKit::init() function.


Detailed Description

The NetworkKit class is used to initialize the NetworkKit runtime.

NetworkKit::init() must be called at start up before anything other classes in the NetworkKit are used.

NetworkKit::terminate() must be called to free up any resources used by the NetworkKit.

An example of proper usage looks like this:

    int main( int argc, char** argv ) 
    {
        VCF::FoundationKit::init(argc, argv);
        VCF::NetworkKit::init(argc, argv);

        //your code here

        VCF::NetworkKit::terminate();
        VCF::FoundationKit::terminate();

        return 0;
    }

The NetworkKit is cannot be instantiated nor can it be derived from.


Member Function Documentation

static void VCF::NetworkKit::init int  argc,
char **  argv
[static]
 

Initialization takes place here, plus creating the various system resources and peer instances.

static void VCF::NetworkKit::terminate  )  [static]
 

Frees up any resources allocated in the NetworkKit::init() function.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information