Creates a new Browser object.
Declaring type: BrowserFactory
Namespace: Vrml.EAI
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public static Browser GetBrowser (
        IPAddress address,
        int port
) 
Parameters
address
The address of the machine the X3D browser is running on.
port
The port number the X3D browser is listening on for connections. This port number can be configured, but by default it is 4848.
Return Value
The new Browser object.
Collapse/Expand Remarks
The Browser object created by this method allows to control a running instance of an X3D browser on the same or another machine via the network.
Collapse/Expand Example
The following example demonstrates how to create a new instance of the Browser interface by using the GetBrowser() method:
C#
System.Net.IPAddress address = System.Net.Dns.GetHostByName("localhost").AddressList[0];
Vrml.EAI.Browser browser = Vrml.EAI.BrowserFactory.GetBrowser(address, 4848);
...
browser.Dispose();