LG_Exit

LG_Exit — exits the Cascade TextLogger.

Syntax

#include <cogent.h>
ST_STATUS LG_Exit(IP_Task*  myself,
 IP_Task*  textlog,
 char*  retbuf,
 int  buflen,
 int  exitstatus);

Arguments

myself

A pointer to this task's IP_Task structure normallly generated by a call to IP_NserveInit.

textlog

A pointer to the Cascade TextLogger's IP_Task structure, normally generated by a call to IP_TaskFindName.

retbuf

A pointer to a character buffer to hold the return from the call.

buflen

The length of retbuf, in bytes.

exitstatus

The exit status to be returned to the operating system.

Returns

If this function returns a value at all, it will be NULL, indicating that the exit function failed. Normally this function will cause the Cascade TextLogger to exit, so that the client will see a disconnection rather than a return value.

Description

This function corresponds to the Cascade TextLogger exit command.