library/src/blockclass/BP-BlockClass.cc
// Recieve data over a connected socket.
Recieve data over a connected socket.
Recieve data over a connected socket .
int Block::SockRecv(char *data, int size)
{
	if(!this->net_handle)
		return ERR_FAILURE;
	if (BP_NetRecv(this->net_handle, data, size) == -1)
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
int Block :: SockRecv ( char * data , int size ) { if ( ! this -> net_handle ) return ERR_FAILURE ; if ( BP_NetRecv ( this -> net_handle , data , size ) == -1 ) return ERR_FAILURE ; return ERR_SUCCESS ; }
Recieve data over a connected socket.
Recieve data over a connected socket .
// ensure we have a network handle // attempt to read data // return indicating success