/* Initiate a TCP connection with host:port and the given protocol  */
int mbedtls_net_connect(mbedtls_net_context *ctx, const char *host, const char *port, int)
/* Initiate a TCP connection with host:port and the given protocol  */
int mbedtls_net_connect(mbedtls_net_context *ctx, const char *host, const char *port, int)
{
        switch (*error) {
        case Error::Dns:
            return MBEDTLS_ERR_NET_UNKNOWN_HOST;
        default:
            return MBEDTLS_ERR_NET_CONNECT_FAILED;
        }
    } else {
        return 0;
    }
}