Protocol.getProtocolByName

bool getProtocolByName(scope const(char)[] name) @trusted nothrow

Returns

false on failure