| gclib 1.32.6 Communications API for Galil controllers and PLCs |

## ◆ GLost()

GCLIB_DLL_EXPORTED GReturn GCALL GLost | ( | GCon | g | ) |

Checks for a lost connection.

Attention
  `GLost()` checks if a device has been lost. Devices are considered "lost" when the suddenly disapear which can happen when a controller is powered off or the ethernet cord is disconnected. GLost should be called periodically and the results handled accordingly.

Parameters

  g | Connection's handle.

Returns
  The success status or error code of the function.

See x_examples.cpp for an example.