Connect
Top  Previous  Next

Description

Brings the virtual camera "online" and binds it to the specified network interface.

[C++]
int
 connect(const char* ipAddr);


Parameters
[C/C++]
 
[in] const char* ipAddr  
String containing the IP address which will be assigned to the virtual camera. Must be in the same subnet as the interface selected in the first parameter. If zero or omitted, the camera's IP address will coincide with the IP address of the selected interface.  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
E_NOINTERFACE  
Interface does not exist  
E_INVALIDARG  
Wrong IP address  
 

Example


This fragment of code creates a virtual camera object and binds it to a specific network interface :

static CGevCamera* m_pCamera;  
m_pCamera = createCamera();  
m_pCamera->Connect ("169.254.1.100");  
 


Remarks


This method should be called after all camera features have been set up and configured. After the virtual camera gets to the connected state, it becomes available to client GigE Vision applications operating on the same network.

In a typical configuration a GigE network interface must be selected for a remote GigE Vision connection. It is possible however to select any other interface available in the system as long as a client application is running on the local host.

No feature can be added or removed while the camera is in the connected state. Use Disconnect to bring the camera offline.