Click or drag to resize

RuntimeManagerClientConnected Event

Occurs when a host accepted the client's connection.

Namespace:  OpenTestSystem.Otx.Runtime.Api
Assembly:  OpenTestSystem.Otx.Runtime.Api (in OpenTestSystem.Otx.Runtime.Api.dll) Version: 5.5.0.0 (6.1.0.31040)
Syntax
public event ClientConnectedHandler ClientConnected

Value

Type: OpenTestSystem.Otx.Runtime.Api.EventClientConnectedHandler

Implements

IRuntimeManagerClientConnected
Examples
The following example shows how you can use this event to inform that the client connected to the host sucessfully.
C#
static class Program
{
    static void Main()
    { 
        RuntimeManager rt = new RuntimeManager();
        rt.Load("C:\\Sample.ptx");
        rt.ClientConnected += new OpenTestSystem.Otx.Runtime.Api.Event.ClientConnectedHandler(ClientConnected);
        rt.Connect("192.168.1.30", 1001);
    } 

    private static void ClientConnected(string hostIpAddress, string hostName)
    {
        Console.WriteLine(string.Format("Connect to {0} ({1}) successfully.", hostIpAddress, hostName));         
    }
}
See Also