INtime Connector Device (or XCNT) is a virtual device driver for INtime Network7 TCP/IP stack. Another application can connect to the device to send and receive Ethernet frames to and from the INtime network stack.
The most common use of XCNT is to share a single NIC device with Network7 stack and HPE application (figure below), but XCNT can be used for other applications.

The connector device will appear as “xcntn” in the INtime Network where n is the instance number. For example, the first connector device will be “xcnt0”.
The following calls are implemented in the XCNT API, which is called from the user application to send and receive packets from the network stack.
|
xcntOpenConnector |
Establish a connection to the Connector Device |
|
xcntCloseConnector |
Close a connection to the device |
| xcntSendToConnector | Send an Ethernet frame to the device |
|
xcntReceiveFromConnector |
Receive an Ethernet frame from the device |
| xcntSetMediaStatus | Change the media status of the Connector Device |
Establish a connection to the Connector Device
#include <xcnt_api.h>
typedef void* XCNTHANDLE;
int xcntOpenConnector(
const char *cntName,
const BYTE *macAddr,
DWORD phyParams,
DWORD reserved,
DWORD timeoutMs,
XCNTHANDLE *pHandle
);
cntNamemacAddrphyParamsreservedtimeoutMspHandleE_OKE_PARAME_MEME_VMEME_TIMEClose a connection.
#include <xcnt_api.h> int xcntCloseConnector( XCNTHANDLE *pHandle );
pHandleE_OKE_PARAMSend an Ethernet frame to the device.
#include <xcnt_api.h>
int xcntSendToConnector(
XCNTHANDLE handle,
const BYTE *pBuffer,
DWORD bufferLength
);
handlepBufferbufferLengthE_OKE_PARAME_STATEEH_GENERAL_PROTECTIONReceive an Ethernet frame from the device.
#include <xcnt_api.h>
int xcntReceiveFromConnector(
XCNTHANDLE handle,
BYTE *pBuffer,
DWORD *pBufferLength,
DWORD timeoutMs
);
handlepBufferpBufferLengthtimeoutMsE_OKE_PARAME_TIMEE_CANCELEDE_EMPTY_ENTRYEH_GENERAL_PROTECTIONChange the Media Status for the connector device.
#include <xcnt_api.h>
int xcntSetMediaStatus(
XCNTHANDLE handle,
DWORD phyParams
);
handlephyParamsE_OKE_PARAM| Versions | Link to |
|---|---|
| INtime 4.2 | xcnt_api.lib |