setIPVersion
startup
shutdown
dySleep
getErrMsg
The DyConnect class lets you configure and start DyConnect, and contains the generic dySleep function. Note that these are static functions, and can be called without an object:
DyConnect::dySleep(1000);//sleep for one second
static bool setIPVersion(int newVersion);
Selects the IP version that DyConnect will use. This function should be called before startup. newVersion can be either 4 or 6, with 4 being the default value.
Returns false on failure and sets errMsg appropriately.
Activates DyConnect's networking services. This needs to be called before doing any UDP or TCP/IP networking.
Returns false on failure and sets errMsg appropriately.
Halts DyConnect's networking services. Call this after you've finished using DyConnect. Note that any initialized NetworkEngine objects should be deleted before shutdown is called, as their threads may still be doing networking in the background.
static void dySleep(long int milliseconds);
Pauses execution for a given number of milliseconds.
static string getErrMsg(void);
Returns a description of the most recent error.