User manual

CAN API reference
27 © 2007-2010 Analytica GmbH
CANRestart
CANRestart — Restarts a AnaGate CAN device.
Syntax
#include <AnaGateDllCan.h>
int CANRestart(const char * pcIPAddress, int nTimeout );
Parameter
pcIPAddress Network address of the AnaGate partner.
nTimeout Default timeout for accessing the AnaGate in milliseconds. A timeout is reported if the
AnaGate partner does not respond within the defined timeout period.
Return value
Returns Null if successful, or an error value otherwise (Appendix A, Return Codes).
Description
Restarts the AnaGate CAN device at the specified network address. It disconnects implicitly all open
network connections to all existing CAN interfaces. The Restart command is even possible if the maximum
number of allowed connections is reached.
Important
It is recommended to use this command only in emergency cases, if there is a need to connect
even if the maximum number of concurrent connections is reached.
See also
CANOpenDevice