#include <omTCPParser.h>
Inheritance diagram for omTCPParser:
Public Member Functions | |
omTCPParser () | |
int | AnalizeChar (char) |
bool | GetRegisterMessage (wxString *, wxString *) |
bool | GetGenericMessage (omTCPMessage *) |
Private Member Functions | |
bool | GetParameterValue (wxString, wxString *) |
int | GetDecodedParameters (wxString, wxArrayString *) |
void | ResetInitialStatus () |
Private Attributes | |
bool | messageReceived |
True if message is received. | |
bool | receivingMessage |
True if in receiving message status. | |
bool | registerMessage |
True if register meessage type. | |
bool | genericMessage |
True if generic message type. | |
omTCPMessage | genericMessageData |
Received message buffer. | |
wxString | agentName |
Registered message agent name. | |
wxString | serviceName |
Registered message service name. | |
bool | receivingEscape |
True if receiving an escape sequence. | |
bool | receivingRegister |
flag | |
bool | receivingGeneric |
flag | |
bool | messageStarting |
flag | |
bool | messageEnding |
flag | |
bool | messageStarted |
flag | |
bool | messageEnded |
flag | |
int | charCounter |
generic character counterz | |
wxString | partialMessage |
Partial message buffer. |
This class is used to parse TCP messages used by the agents.
Every character received from a TCP socket is analized by AnalizeChar() method of this class. This method compose and analize the message. The method return a code corresponing to the type of the message analized.
If OM_REGISTER_MESSAGE is received method GetRegisterMessage() return message data.
If OM_GENERIC_MESSAGE is received method GetGenericMessage() return message data.
|
Build omTCPParser object initializing variables |
|
Analize a character coming from TCP/IP connection. This method compose a message and parses it.
|
|
Find a list of parameters in a line of the TCP message, decode them and fill a wxArrayString strcuture.
|
|
Get generic message data.
|
|
Find a parameter in a line of the TCP message
|
|
Get register message data.
|
|
|
|
Registered message agent name.
|
|
generic character counterz
|
|
True if generic message type.
|
|
Received message buffer.
|
|
flag
|
|
flag
|
|
True if message is received.
|
|
flag
|
|
flag
|
|
Partial message buffer.
|
|
True if receiving an escape sequence.
|
|
flag
|
|
True if in receiving message status.
|
|
flag
|
|
True if register meessage type.
|
|
Registered message service name.
|
Copyright © by Luca Clivio |