tensorpipe
tensorpipe copied to clipboard
Use std::regex to parse uv sockaddr
trafficstars
The sockaddr parsing logic in transport/uv/sockaddr.cc could be done with std::regex instead.
See https://github.com/pytorch/tensorpipe/pull/12.
Maybe we could make parseHostPort() an util that could be useful for other TCP/IP based transports, like TLS and thrift :)