RTC Forums

Subscription => Support => Topic started by: sunstone on February 19, 2011, 01:52:54 AM



Title: ConnectionCount
Post by: sunstone on February 19, 2011, 01:52:54 AM
Thanks very much.
After your explanation in detail, I can understand your design thinking more clearly.

1) Could you explain the difference of "rtcServerConnectionCount,rtcClientConnectionCount,
,TotalClientConnectionCount,TotalConnectionCount" ?

2) rtcClientConnectionCount=TRtcHttpServer1.TotalClientConnectionCount  + TRtcHttpServer2.TotalClientConnectionCount +...+ TRtcHttpServerX.TotalClientConnectionCount ?
If the server program has only one TRtcHttpServer,rtcClientConnectionCount=TotalClientConnectionCount ?
rtcServerConnectionCount is same too?

3)rtcTotalConnectionCount=rtcServerConnectionCount + rtcClientConnectionCount ?
TotalServerConnectionCount=TotalClientConnectionCount + TotalServerConnectionCount?

Best regards
SUNSTONE


Title: Re: ConnectionCount
Post by: D.Tkalcec (RTC) on February 19, 2011, 08:49:06 AM
* function rtcServerConnectionCount:longint;
- Returns the total number of active connections open to our Server connection components. This is the number of active incoming Connections to all RTC Server components in our application.

* function rtcClientConnectionCount:longint
- Returns the total number of active connections open by using any Client connection component. Please note that an open client connection does not necessarily mean a working connection, but it does mean a connection resource which is actively in use.

* function rtcTotalConnectionCount:longint;
- Total number of ALL active incomming and outgoing connections to and from RTC components. This is the same as rtcServerConnectionCount + rtcClientConnectionCount.

Properties available on the TRtcConnection component descendants are calling the above listed global procedures to give you access to the same information:
- TotalClientConnectionCount = rtcClientConnectionCount
- TotalServerConnectionCount = rtcServerConnectionCount
- TotalConnectionCount = rtcTotalConnectionCount

Best Regards,
Danijel Tkalcec