we have std::string A with tcp://adr:port/ How to parse it into address std::string and one int for port?
A
tcp://adr:port/
You could use a tool like re2c to create a fast custom scanner. I'm also unclear on what you consider to be "fastest" -- for the processor or development time or both?