01-14-2015, 04:22 AM
My feeling about the current API is that cNetwork has too many responsibilities. I feel it should be split up either into three classes, one handling DNS, one handling Connect and one handling Listen, or they should all be made into free functions.
I think that the best outcome would be to split the Network code into three sets of h/cpp files, one holding the two DNS free functions, one holding the connections code and one holding the TCPLink code as most code will need at most two of the files.
I think that the best outcome would be to split the Network code into three sets of h/cpp files, one holding the two DNS free functions, one holding the connections code and one holding the TCPLink code as most code will need at most two of the files.