parseHostPort

fnMongoHost parseHostPort(string hostPort) @safe pure nothrow

Parses a "host:port" string into a MongoHost. Returns MongoHost.init if the string cannot be parsed.