-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Losing Connect #183
Comments
I finally figured out how to incorporate the SwiftSocket CocoaPod with my application. I only need a TCP Client, and If I use the Example code I can read data from my TCP Server just fine. However, the example code opens a new connection every time I request data. I need to leave the connection open and read code multiple times later. Every time I call sendRequest() I get a connection closed error message. This seems to be happening because I exit the class containing Socket calls (e.g. "Example Code"). When I go to the TCP Client to send() or read(), fd is clear (0). I am not exactly sure what fd does, but it seems to indicate a connection has been established. How can I get around this without doing a new connection every time? |
@bbabbitt did you found any solution? a have also the same problem. |
Hello |
Okay, thank you |
No description provided.
The text was updated successfully, but these errors were encountered: