Management (Mgmt) Comm using JSON format. Concerned with full/well-formed Mgmt/JSON msg frames and forwards to any listeners via channels. More...
Public Member Functions | |
JsonComm (IComm commToPtr) | |
Start a JSON communication using the connection passed in. More... | |
void | Dispose () |
void | Send (string mgmtMsgToSend) |
Sends JSON mgmtMsgToSend using the connection that was passed in when the object was created. | |
string | SendAndWaitForResponse (string mgmtMsg, int respTimeoutMs) |
Send JSON msg mgmtMsg and wait respTimeoutMs before returning response. If no response received after timeout, empty string "" returned. | |
Static Public Member Functions | |
static string | ReplaceJsonArrayValues (string json) |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Properties | |
IMgmtMsgListenerChannels< string > | ChannelListenerJson [get] |
IMgmtMsgListenerChannels< MgmtMsg > | ChannelListenerMgmtMsg [get] |
bool | UsingDataPort = false [get, set] |
Management (Mgmt) Comm using JSON format. Concerned with full/well-formed Mgmt/JSON msg frames and forwards to any listeners via channels.
Requires a communication connection for sending and listening for fully formed Mgmt messages.
This class also uses the communication connection to send and listen for JSON msgs.
Note that this class will read all data received from the communication connection as it is received in order to
listen and parse fully formed JSON messages.
UniPRT.Sdk.Json.JsonComm.JsonComm | ( | IComm | commToPtr | ) |
Start a JSON communication using the connection passed in.
Connection must be opened and maintained opened by caller/user.