ofxTCPClient receive() connection reset check platform independence #704

Merged
merged 4 commits into from Aug 9, 2011

2 participants

@SnareHanger

I had a client and server connected. Upon closing the client, the console on the server gets flooded with ECONNRESET messages.

In ofxTCPClient::receive() line 192, I changed the check to use ofxNetworkCheckError to check for errors. Using the errno macro directly does not check the target platform, but ofxNetworkCheckError does check for platform and then uses errno macro if not a WIN_32 machine.

@arturoc arturoc merged commit 275ed04 into openframeworks:master Aug 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment