Managing Protocol Services

Reopen

lgo_Reopen()

Unconditionally terminate a communication session.

Syntax
#include "laygo.h"

LResult lgo_Reopen
    (
        LCid    cid
    );
cidconnection to reopen
Description

lgo_Reopen() abruptly terminates a communication session, returning the connection to the open state. It may attempt, but does not guarantee, an orderly termination. lgo_Reopen() is a valid command in any state except open and closed. It is provided primarily so that applications can cleanup and exit in the middle of a stalled communication session. It's use should be rare.

Return Values

If successful, lgo_Reopen() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

lgo_Open()

Example
if (lgo_Reopen(cid) < 0)
{
    return (FAILURE);
}