The documentation (SimpleLink CC31xx/CC32xx Host Driver Version 3.0.1.46) for sl_Connect() is incorrect. I have wasted a lot of time because of this.
The documentation states: "Returns: On success, a socket handle." This is incorrect. By both empirical testing and inspection of the source code it is evident that sl_Connect() returns *zero* on success.