Appearance
types/connection.proto
Table of Contents
types/connection.proto
CommStatus
Describes the state of communication between two entities. the CommStatus typically represents the application layer rather than any transport layer. For example TCP messages may be sent and ACKs received for them but if the application protocol response are never received then the CommStatus should not be COMM_SUCCESS.
Name | Number | Description |
---|---|---|
COMM_STATUS_UNSPECIFIED | 0 | the status of the line is unknown or unknowable |
COMM_SUCCESS | 1 | The last time we attempted communication across it was successful. |
COMM_FAILURE | 2 | Communication with the device is failing |
Connectivity
Defines the connection state between two entities. This could be a TCP network connection or a HDMI connection. In cases where a connection is possible but the state of the connection can never be determined directly use NOT_APPLICABLE, for example a simple io connection has no concept of 'alive'.
The state of DISCONNECTED is not automatically an indication if issues in a system. A device may decide to disconnect to save resources.
Name | Number | Description |
---|---|---|
CONNECTIVITY_UNSPECIFIED | 0 | The connection state has not been provided. |
NOT_APPLICABLE | 1 | The concept of a connection makes no sense for this device |
DISCONNECTED | 2 | There is no active connection |
CONNECTED | 3 | There is an open connection to the device |