parse_uri Subroutine

public subroutine parse_uri(uri, host, port)

Parse a "tcp://host:port" URI into host string and integer port. Errors fatally on a malformed URI — bug in the caller.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: uri
character(len=*), intent(out) :: host
integer, intent(out) :: port