Click here to Skip to main content
15,899,026 members

Comments by mclang (Top 1 by date)

mclang 16-Jun-17 3:06am View    
Sorry, I was on business trip and forgot to check this out.

Most of the data is basic ASCII, but I think one client sends binary. We can't control the data format, so selecting the right client class to create will be a mess :(

Current logic does that, I mean creates concrete types after client type is found out. This is done using Factory/Builder class. Problem is that each client type can have additions like different IO information that need to be handled also. If I do the data handling of these additions in the concrete client types, it will results a lot of code duplication.

I will check out those two patterns.