SenderDisconnectedEventInfo.DisconnectReason

public static abstract @interface SenderDisconnectedEventInfo.DisconnectReason implements Annotation

Sender disconnect reasons.

Constant Summary

int ERROR A sender connection is closed because there was a protocol error.
int REQUESTED_BY_SENDER Connection close was actively requested by the sender application (usually triggered by the user).
int UNKNOWN It is unknown if the sender requested to disconnect gracefully (most likely it didn't, but the close message could have been lost).

Inherited Method Summary

Constants

public static final int ERROR

A sender connection is closed because there was a protocol error.

Constant Value: 2

public static final int REQUESTED_BY_SENDER

Connection close was actively requested by the sender application (usually triggered by the user).

Constant Value: 1

public static final int UNKNOWN

It is unknown if the sender requested to disconnect gracefully (most likely it didn't, but the close message could have been lost). This normally happens when there is a network timeout or if the sender application crashes or if the sender OS closes the socket.

Constant Value: 0