TCHMllpServer Component
Properties Methods Events

This object implements a Lower Layer Protocol (LLP) TCP/IP server that listens for connections from clients.

Unit
CHMnet

Declaration
TCHMllpServer = class(TComponent)

Description

Most of the network events that are raised provide a ICHMllpConnection parameter, which gives methods to interact with the client connection that the event is associated with.

See http://www.interfaceware.com/manual/network_components.html for more information.


Properties
Client Representation of the collection of remote Clients that are connected to this server.
HeaderBlock The characters that precede a message in a stream.
Host The local interface on which we are listening, used by the next call to the StartListen method.
IsListening The status of the listening state.
Port The port on which we are listening, set by the StartListen method.
TrailerBlock The characters that follow a message in a stream.
Methods
CountOfClient Returns the total number of Clients.
DisconnectAllClients Stop listening on the port for new connections, and initiate a Disconnect on all open connections.
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.
StartListen Attempt to listen on the supplied port for incoming client connections.
StopListen Stop the component from listening for new connections.
StopMessageLoop This will send a quit message to the thread that the networking components are running on.
Events
OnClientConnected Fired when a connection is made to the server by a new client.
OnClientDisconnected Fired when a client disconnects from the server, or a previous Disconnect call on a Connection succeeds.
OnClientErrorReceived Fired when a networking error occurs with a specific client connection.
OnDataIgnored Fired when data has been received that is not within the header and trailer block envelope.
OnErrorReceived Fired when an issue occurs with the server socket itself rather than a specific client.
OnMessageReceived Fired each time we receive a message from a connected HL7 client.

Chameleon Delphi Documentation