TCHMllpClient Component Properties Methods Events |
This class can be used to implement a Lower Layer Protocol (LLP) TCP/IP client to connect to an LLP server.
Unit
CHMnet
Declaration
TCHMllpClient = class(TComponent)
Description
See http://www.interfaceware.com/manual/network_components.html for more information.
Properties |
HeaderBlock | The characters that precede a message in a stream. |
IsConnected | The status of the connection with the server. |
TrailerBlock | The characters that follow a message in a stream. |
Methods |
Connect | Connect to the given host and port number. |
Disconnect | Attempt to gracefully disconnect from the server. |
HardDisconnect | Ungracefully disconnect without doing TCP/IP handshaking with the server. |
MakeMessagePrintable | Make message printable by changing plain carriage return characters "\r" to carriage return and newline characters "\r\n". |
RunMessageLoop | On Windows platforms all events are dispatched using the Windows message loop. |
StopMessageLoop | Send a quit message to the thread that the networking components are running on. |
TransmitMessage | Send a message to the server, prefixed and postfixed by the current HeaderBlock and TrailerBlock characters. |
Events |
OnClosed | Fired when the connection is closed. |
OnConnected | Fired when the connection is made with the server. |
OnDataIgnored | Fired when data has been received that is not within the header and trailer block. |
OnErrorReceived | Fired when we have an error with the TCP/IP connection. |
OnMessageReceived | Fired when a message is received. |