RPC HELP TRPCBroker connect and disconnect behavior

From VistApedia
Revision as of 17:08, 4 July 2015 by Kdtop (talk | contribs) (Created page with "<h2>Component Connect/Disconnect Behavior</h2> <h3>Connect</h3> The first time one of the Broker components in your application connects, it will establish an actual connecti...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Component Connect/Disconnect Behavior

Connect

The first time one of the Broker components in your application connects, it will establish an actual connection with the server. The connection record will be added to the list of all active connections for your application. This list is internal to the application and is completely under the control of the Broker component and is transparent to you. If another Broker component tries to connect to the same server/port, the existing connection record will be found in the list and its socket will be shared. The new connection will also be added to this list. This process is repeated with each connection request.

Disconnect

When a Broker component disconnects, its connection record is removed from the internal list of active connections. If it happens to be the last record for the particular server/port combination, the connection is actually closed. This scheme provides the illusion of multiple connections without "clogging up" the server.