2.0 KiB
2.0 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T16:09:21.372435+00:00 | zai-org/GLM-5-FP8 | 1 | d613cb9c5eb24602 |
Communication
Purpose
This module defines communication operation outcomes and a callback contract for reporting communication status. It provides a standardized enumeration for tracking the success, failure, or timeout states of connect, disconnect, send, and receive operations, enabling consistent error handling and status reporting across the communication layer.
Public Interface
CommunicationConstantsAndEnums (static class)
- Contains all communication-related enums and delegates.
CommunicationResult (enum)
ConnectOK- Connection succeededConnectFailed- Connection attempt failedConnectTimeout- Connection attempt timed outDisconnectOK- Disconnection succeededDisconnectFailed- Disconnection attempt failedDisconnectTimeout- Disconnection attempt timed outSendOK- Send operation succeededSendFailed- Send operation failedSendTimeout- Send operation timed outReceiveOK- Receive operation succeededReceiveFailed- Receive operation failedReceiveTimeout- Receive operation timed outCanceled- Operation was canceled
CommunicationCallback (delegate)
- Signature:
delegate bool CommunicationCallback(ICommunicationReport report) - Accepts an
ICommunicationReportinstance and returns a boolean result.
Invariants
- The
CommunicationResultenum values are implicitly ordered as defined; no explicit integer values are assigned. - Each operation type (Connect, Disconnect, Send, Receive) has exactly three outcome variants: OK, Failed, and Timeout, plus a global
Canceledstate.
Dependencies
- Depends on:
DTS.Common.Interface.Communication.ICommunicationReport(used in delegate signature) - Depended on by: Not determinable from source alone
Gotchas
- None identified from source alone.