Hi,
1. Functions RTCSLOG_disable()/_enable() are used to disable/enable RTCS event logging in the MQX kernel log.
They have nothing with socket API.
2. You can not call connect(), if the socket is already connected or the socket is closed.
3. It's good to read a "RTCS User Manual"; find a TCP client source code inside RTCS and use it as reference for your project.
Best regards,
Andrey