library/src/blockclass/BP-BlockClass.cc
// CURRENT: Destroy the classes current proxy set data.
Destroy the classes current proxy set data.
Destroy the classes current proxy set data .
size_t Block::DestroyUsableProxySet()
{
	if(!this->httpSession)
		return ERR_FAILURE;
	if(this->httpSession->proxy_set)
	{
		if(this->httpSession->proxy_set->proxies)
		{
			tq_free(this->tq, this->httpSession->proxy_set->proxies);
			this->httpSession->proxy_set->proxies = NULL;
		}
		tq_free(this->tq, this->httpSession->proxy_set);
	}
	this->httpSession->proxy_set = NULL;
	return ERR_SUCCESS;
}
size_t Block :: DestroyUsableProxySet ( ) { if ( ! this -> httpSession ) return ERR_FAILURE ; if ( this -> httpSession -> proxy_set ) { if ( this -> httpSession -> proxy_set -> proxies ) { tq_free ( this -> tq , this -> httpSession -> proxy_set -> proxies ) ; this -> httpSession -> proxy_set -> proxies = NULL ; } tq_free ( this -> tq , this -> httpSession -> proxy_set ) ; } this -> httpSession -> proxy_set = NULL ; return ERR_SUCCESS ; }
CURRENT: Destroy the classes current proxy set data.
CURRENT : Destroy the classes current proxy set data .
// destroys the proxy set // destroy inner proxies pointer if it exists (should only need one bpfree due to static char[] buffs) // bpfree the proxy set // set proxy set to null