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/
Fastest as in computer time or programmer time? I can't speak of benchmarks but the uri library in the cpp-netlib framework works very well and is very easy and straightforward to use.
http://cpp-netlib.github.com/0.8-beta/uri.html