library/src/blockclass/BP-BlockClass.cc
// accepts and assigns the current blocks net_handle to a new accepted P_NETWORK
// structure that was created by validating a listening P_NETWORK
// established socket structure argument.
accepts and assigns the current blocks net_handle to a new accepted P_NETWORK
structure that was created by validating a listening P_NETWORK
established socket structure argument.
accepts and assigns the current blocks net_handle to a new accepted P_NETWORK structure that was created by validating a listening P_NETWORK established socket structure argument .
int Block::SockAccept(P_BP_NETWORK_HANDLE acceptHandle)
{
	if (net_handle != NULL)
	{
		SockClose();
		SockDestroy();
	}
	this->net_handle = BP_NetAccept(acceptHandle);
	if (!this->net_handle)
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
int Block :: SockAccept ( P_BP_NETWORK_HANDLE acceptHandle ) { if ( net_handle != NULL ) { SockClose ( ) ; SockDestroy ( ) ; } this -> net_handle = BP_NetAccept ( acceptHandle ) ; if ( ! this -> net_handle ) return ERR_FAILURE ; return ERR_SUCCESS ; }
accepts and assigns the current blocks net_handle to a new accepted P_NETWORK
structure that was created by validating a listening P_NETWORK
established socket structure argument.
accepts and assigns the current blocks net_handle to a new accepted P_NETWORK structure that was created by validating a listening P_NETWORK established socket structure argument .
// ensure we have a network handle // accept on the handle, and reassign // ensure we have a network handle // return indicating success