Universal Robots Forum

When socket_close() is called?

Normally URP program calls socket_open and keep open state.
Sometimes later program is stopped by user in polyscope. and restarted.
In that case, we could not call socket_close() explicitly when stopping.
Does URControl process call socket_close() internally?

When a program using sockets is stopped, all remaining open sockets are closed.
However it is good practice, to use socket_close() yourself to ensure proper housekeeping.