EnableNetworkRXQueue Method - intrepidcs API
C/C++ declare -
VB declare - VB.NET declare
- C# declare - Parameters - Return
Values - Remarks - C/C++ example
- VB example - VB.NET
example - C# example
This method enables or disables the received messages queue for a specific application connected to a neoVI device.
int _stdcall icsneoEnableNetworkRXQueue(int hObject, int lEnable);
Visual Basic Declare
Public
Declare
Function
icsneoEnableNetworkRXQueue Lib
"icsneo40.dll" (ByVal
hObject As
Long,
ByVal iEnable
As
Long)
As
Long
Visual Basic .NET
Declare
Public
Declare
Function icsneoEnableNetworkRXQueue Lib
"icsneo40.dll" (ByVal hObject
As Int32,
ByVal iEnable As Int32)
As Int32
C#
Declare
[DllImport("icsneo40.dll")]
public static
extern Int32
icsneoWaitForRxMessagesWithTimeOut(Int32 hObject, UInt32 iTimeOut);
Parameters
hObject
[in] Specifies the driver object created by
OpenNeoDevice.
lEnable
[in] 1 to enable network receive, 0 to disable network
receive.
Returns 1 if successful, 0 if an error
occurred. GetLastAPIError
must be called to obtain the specific error. The errors that can be generated by
this function are:
NEOVI_ERROR_DLL_NEOVI_NO_RESPONSE = 75
This function will enable and disable network traffic for a specific client application connected to the neoVI. Other applications connected to the same neoVI device will not be affected.
Examples
'// disable network communications
Call
icsneoEnableNetworkRXQueue(m_hObject, 0)
// disable network communications
icsneoEnableNetworkRXQueue(m_hObject, 0);
'// disable network communications
Call
C# Example
// disable network communications
icsNeoDll.icsneoEnableNetworkRXQueue(m_hObject,
0);
| intrepidcs API Documentation - (C) Copyright 2000-2012 Intrepid Control Systems, Inc. (www.intrepidcs.com) |
Last Updated : Wednesday, December 17, 2008 Monday, January 24, 2005