NAME

gc_close_reason - Specifies the mode for closing a server connection.

SYNOPSIS

#include <game-carrier/common.h>

enum gc_close_reason {
    GC_CLOSE_REASON_NORMAL = 0,
    GC_CLOSE_REASON_DROP = 1,
    GC_CLOSE_REASON_COUNT
};

DESCRIPTION

Name Value Description
GC_CLOSE_REASON_NORMAL 0 Represents a normal connection close. All messages in the queue will be delivered, and any pending operations will be completed before the connection is closed.
GC_CLOSE_REASON_DROP 1 Indicates a connection drop. All messages in the queue will be discarded, and any pending operations will be aborted before closing the connection.
GC_CLOSE_REASON_COUNT 2 Represents the total number of available close reasons.

SEE ALSO

connectionClose