armadillu / ofxHttpForm

OpenFrameworks addon to handle basic http forms
Other
15 stars 5 forks source link

Added functionality to set port number #3

Closed btparker closed 9 years ago

armadillu commented 9 years ago

you'll need to init port to 0, otherwise if(resp->port) will set random ports in release mode. Also, if(resp->port != 0) is probably easier to read. I would even init the port to -1 to make it super-mega clear