1
<?xml version="1.0" encoding="ISO-8859-1"?>
6
====================================================================
8
====================================================================
11
<module name="dbugmsg">
12
<short>Auxiliary unit for the dbugintf unit.</short>
14
<file>dbugmsg</file> is an auxialiary unit used in the <link
15
id="#fcl.dbugintf">dbugintf</link> unit. It defines the message protocol
16
used between the debug unit and the debug server.
19
<!-- unresolved type reference Visibility: default -->
20
<element name="Classes">
21
<short><var>TStream</var> implementation</short>
24
<!-- constant Visibility: default -->
25
<element name="DebugServerID">
26
<short>System unique name</short>
28
<var>DebugServerID</var> is a string which is used when creating the message
29
protocol, it is used when identifying the server in the (platform dependent)
30
client-server protocol.
34
<!-- constant Visibility: default -->
35
<element name="lctStop">
36
<short>Stop message</short>
38
<var>lctStop</var> is sent by the client to a server when it disconnects.
42
<!-- constant Visibility: default -->
43
<element name="lctInformation">
44
<short>Informational message</short>
46
<var>lctInformation</var> is the identification of informational messages.
50
<!-- constant Visibility: default -->
51
<element name="lctWarning">
52
<short>Warning message</short>
54
<var>lctWarning</var> is the identification of warning messages.
58
<!-- constant Visibility: default -->
59
<element name="lctError">
60
<short>Error message</short>
62
<var>lctError</var> is the identification of error messages.
66
<!-- constant Visibility: default -->
67
<element name="lctIdentify">
68
<short>Identification message</short>
70
<var>lctIdentify</var> is sent by the client to a server when it first connects.
71
It's the first message, and contains the name of client application.
75
<!-- record type Visibility: default -->
76
<element name="TDebugMessage">
77
<short>Structure describing a message</short>
79
<var>TDebugMessage</var> is a record that describes the message passed from
80
the client to the server. It should not be passed directly in shared memory,
81
as the string containing the message is allocated on the heap. Instead, the
82
<link id="WriteDebugMessageToStream"/> and <link id="ReadDebugMessageFromStream"/>
83
can be used to read or write the message from/to a stream.
86
<link id="ReadDebugMessageFromStream"/>
87
<link id="WriteDebugMessageToStream"/>
91
<!-- variable Visibility: default -->
92
<element name="TDebugMessage.MsgType">
93
<short>Constant, identifying the type of message</short>
96
<!-- variable Visibility: default -->
97
<element name="TDebugMessage.MsgTimeStamp">
98
<short>Time when the message was generated</short>
101
<!-- variable Visibility: default -->
102
<element name="TDebugMessage.Msg">
103
<short>String containing the message text.</short>
106
<!-- procedure Visibility: default -->
107
<element name="ReadDebugMessageFromStream">
108
<short>Read a message from stream</short>
111
<var>ReadDebugMessageFromStream</var> reads a <link id="TDebugMessage"/>
112
record (<var>Msg</var>) from the stream <var>AStream</var>.
115
The record is not read in a byte-ordering safe way, i.e. it cannot be
116
exchanged between little- and big-endian systems.
120
If the stream contains not enough bytes or is malformed, then an exception
124
<link id="TDebugMessage"/>
125
<link id="WriteDebugMessageToStream"/>
129
<!-- argument Visibility: default -->
130
<element name="ReadDebugMessageFromStream.AStream">
131
<short>Stream from which record is read</short>
134
<!-- argument Visibility: default -->
135
<element name="ReadDebugMessageFromStream.Msg">
136
<short>Record to be read from stream</short>
139
<!-- procedure Visibility: default -->
140
<element name="WriteDebugMessageToStream">
141
<short>Write a message to stream</short>
144
<var>WriteDebugMessageFromStream</var> writes a <link id="TDebugMessage"/>
145
record (<var>Msg</var>) to the stream <var>AStream</var>.
148
The record is not written in a byte-ordering safe way, i.e. it cannot be
149
exchanged between little- and big-endian systems.
153
A stream write error may occur if the stream cannot be written to.
156
<link id="TDebugMessage"/>
157
<link id="ReadDebugMessageToStream"/>
161
<!-- argument Visibility: default -->
162
<element name="WriteDebugMessageToStream.AStream">
163
<short>Stream to write message to</short>
166
<!-- argument Visibility: default -->
167
<element name="WriteDebugMessageToStream.Msg">
168
<short>Message record to be written</short>
171
<!-- function Visibility: default -->
172
<element name="DebugMessageName">
173
<short>Return the name of the debug message</short>
175
<var>DebugMessageName</var> returns the name of the message type. It can be
176
used to examine the <var>MsgType</var> field of a <link id="TDebugMessage"/>
177
record, and if <var>msgType</var> contains a known type, it returns a
178
string describing this type.
181
If <var>MsgType</var> contains an unknown type, <var>'Unknown'</var> is
186
<!-- function result Visibility: default -->
187
<element name="DebugMessageName.Result">
188
<short>String describing the message type</short>
191
<!-- argument Visibility: default -->
192
<element name="DebugMessageName.msgType">
193
<short>Message type</short>
196
</module> <!-- dbugmsg -->
199
</fpdoc-descriptions>