ServiceListenerOnConnectedClient Method |
Triggered when a client is connected to the service.
Namespace: OIV.RemoteViz.Rendering
public virtual void OnConnectedClient( string clientId, NetworkPerformance networkPerformance )
: ID identifying the client
: network performance for the client.
Default behavior : do nothing
If network performance calibration is enabled, the network bandwidth is measured after this call and before calling OIV.RemoteViz.Rendering.ServiceListener.OnInitializedClient(OIV.RemoteViz.Rendering.Client, OIV.RemoteViz.Rendering.NetworkPerformance). Therefore the OIV.RemoteViz.Rendering.NetworkPerformance queries getBandwidth and getLatency will return zero at this point. Use the queries in onInitializedClient to get the measured values.
Calibration is enabled by default. Calibration can be disabled using the networkPerformance parameter (see ()). The duration of the calibration measurement (default 5 seconds) can also be modified (see ()).