Function iseg_disconnect

Disconnects the connected interface and stops the communication threads.

IsegResult iseg_disconnect(const char *name)

Parameter name must be the same that is used for iseg_connect().
Returns ISEG_OK for a successful disconnection.
If the return value is unequal to zero, an error occurred and the disconnection failed.