GNet main module

Name

GNet main module -- Main header and utility functions.

Synopsis



#define     GNET_MAJOR_VERSION
#define     GNET_MINOR_VERSION
#define     GNET_MICRO_VERSION
#define     GNET_INTERFACE_AGE
#define     GNET_BINARY_AGE
#define     GNET_CHECK_VERSION              (major,minor,micro)

Description

gnet.h is the main header file for Gnet applications. It also includes some utility functions for working with glib IOChannels.

Details

GNET_MAJOR_VERSION

#define GNET_MAJOR_VERSION 1


GNET_MINOR_VERSION

#define GNET_MINOR_VERSION 1


GNET_MICRO_VERSION

#define GNET_MICRO_VERSION 1


GNET_INTERFACE_AGE

#define GNET_INTERFACE_AGE 0


GNET_BINARY_AGE

#define GNET_BINARY_AGE    1


GNET_CHECK_VERSION()

#define     GNET_CHECK_VERSION(major,minor,micro)

Check if the version given is compatable with this version of the library. For example, GNET_CHECK_VERSION(1.2.3) would return TRUE if the version is 1.2.5, and FALSE if 1.1.0.

major : Major version number
minor : Minor version number
micro : Micro version number