library/src/blockclass/BP-BlockClass.cc
/*
 * Blockparty "Command and Control" Interface:
 * -----------------------------------------------
 * Used to supply command and control data to a pair of filedescriptors.  What this
 * means is that the filedescriptors are mapped either from an open process or
 * an open socket etc to read and write positions in a FD_SET structure. From there
 * you can supply data automatically to the mapped filedescriptors by a manner of
 * configured yes/no tests.
 */
Blockparty "Command and Control" Interface.

Used to supply command and control data to a pair of filedescriptors.  What this
means is that the filedescriptors are mapped either from an open process or
an open socket etc to read and write positions in a FD_SET structure. From there
you can supply data automatically to the mapped filedescriptors by a manner of
configured yes/no tests.
Blockparty " Command and Control " Interface . Used to supply command and control data to a pair of filedescriptors . What this means is that the filedescriptors are mapped either from an open process or an open socket etc to read and write positions in a FD_SET structure . From there you can supply data automatically to the mapped filedescriptors by a manner of configured yes / no tests .
size_t Block::ccNewSession(P_BP_FDSET fds, char * session_name, BP_CC_SHELL_INTERFACE shell_interface)
{
	if (!fds)
	{
		this->AddErrorToStack((char*) "Error in Block::ccNewSession(): No filedescriptor set provided.");
		return ERR_FAILURE;
	}
	if (!session_name) {
		this->AddErrorToStack((char*) "Error in Block::ccNewSession(): No session name provided.");
		return ERR_FAILURE;
	}
	this->cc_session = BP_CCNewSession(fds, session_name, shell_interface);
	if (!this->cc_session)
	{
		this->AddErrorToStack((char*) "Error in Block::ccNewSession(): Could not create new session.");
		return ERR_FAILURE;
	}
	return ERR_SUCCESS;
}
size_t Block :: ccNewSession ( P_BP_FDSET fds , char * session_name , BP_CC_SHELL_INTERFACE shell_interface ) { if ( ! fds ) { this -> AddErrorToStack ( ( char * ) " " ) ; return ERR_FAILURE ; } if ( ! session_name ) { this -> AddErrorToStack ( ( char * ) " " ) ; return ERR_FAILURE ; } this -> cc_session = BP_CCNewSession ( fds , session_name , shell_interface ) ; if ( ! this -> cc_session ) { this -> AddErrorToStack ( ( char * ) " " ) ; return ERR_FAILURE ; } return ERR_SUCCESS ; }
Blockparty "Command and Control" Interface:
Blockparty " Command and Control " Interface :
// create new session // ensure session was created ok // return indicating success