I am using ofxTCPClient a lot. My use of it resemble to the examples, there not much else to do anyway to setup a connection. I use Raspberry Pi, and OF 0.10.
I realized that the first call to
ofxTCPClient::setup(string ip, int _port, bool blocking)
is OK in terms of CPU time taken,
If you have a working connection,
then you shut it up on the server side (i’m using Pure-Data, I close the window, brutally),
and reopen it (setup() is called again)
the system freeze and there is not even an ofLogError.
Should we close() the connection if disconnected from server, before setup() again ?
(EDIT: it is not enough to close() it)
There is the setup() function of ofxTCPClient.cpp: