I am working on an app that sends data to a server using a TCP connection. The app can establish the connection, but if I send commands to do stuff (in the case of my app, run tests on an external network connected machine), then the TCP connection is disconnected and the socket closes. Any reason why that could be?? Thanks
No. There is no reason why you should experience a socket closing issue, but…
You haven’t given us enough information:
-
Give us a code snippet (showing what your’re doing). Better yet, can you make a tiny example that demonstrates the crash and upload it to the forums? When editing posts, you can click button on formatting++ bar with up-facing arrow to upload a zip file.
-
Tell us what system/devices you’re running on. i.e. Is this in the simulator on a Windows or OSX machine, or are you doing this on a mobile device?
-
What version of Corona SDK / Solar 2D are you using. Ex: I’m currently using Solar 2D 2020.3061.
While I don’t suspect any issues with any version of Corona SDK / Solar 2D, it is good to know.