You're reading the documentation for an older, but still supported version (GL013300).
For information on the latest version, please have a look at GL013301.

close_connection

This function disconnects the robot controller from the external PC. It safely terminates the established TCP/IP communication session.

Definition
DRFLEx.h within class CDRFLEx, public section (line 573)

bool close_connection() { return _close_connection(_rbtCtrl); };

Parameter
None

Return

Value

Type

Description

1

int

Success — robot controller disconnected successfully.

Example

CDRFLEx drfl;
drfl.close_connection();

This example safely closes the TCP/IP connection with the robot controller, ensuring all communication sessions are properly terminated.