<< Click to Display Table of Contents >>
ZfxCheckServer
Check server running.
Syntax
ZFERR FAR ZfxCheckServer( ZFSESSIONHANDLE hSession)
Parameters
Parameter |
Description |
hSession |
API session handle, as returned by ZfxAPIInit call |
Description
This routine checks whether the Zetafax server is running. The server must be running before messages can be submitted for sending.
Return value
The routine returns 0 if the server is running correctly, otherwise one of the following:
ZFERR_NOT_INITIALISED
ZFERR_SERVER_NOT_RUNNING
Example
#include <stdio.h>
#include <zfapi.h>
...
if (ZfxCheckServer(hSession) != 0)
{
printf("Problem checking Zetafax server\n");
}
Related topics