lgo_Reopen()
Unconditionally terminate a communication session.
#include "laygo.h" LResult lgo_Reopen ( LCid cid );
cid | connection to reopen |
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.
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:
if (lgo_Reopen(cid) < 0) { return (FAILURE); }