def get_protocol(properties):
    ' Finds what network protocol to use. '
    is_web = ('urlMap' in properties)
    is_secure = ('ssl' in properties)
    if is_web:
        if is_secure:
            return 'HTTPS'
        return 'HTTP'
    if is_secure:
        return 'SSL'
    return 'TCP'
Finds what network protocol to use.
def get_protocol(properties):
    '  '
    is_web = ('urlMap' in properties)
    is_secure = ('ssl' in properties)
    if is_web:
        if is_secure:
            return 'HTTPS'
        return 'HTTP'
    if is_secure:
        return 'SSL'
    return 'TCP'