2 % SENDCLIENTERROR - Sends an
error flag to the BCVTB.
5 % to the BCVTB through the socket with file descriptor
sockfd.
6 % Set flaWri to a negative value when calling this
function.
11 % 2009-06-26 MWetter@lbl.gov: First version.
14 fprintf('Warning: Cannot close socket in closeIPC(%d) because argument is negative', sockfd);
17 fprintf('Warning: Cannot close socket in closeIPC because BCVTB library is not loaded');
elseif ~libisloaded(getBCVTBLibName())%bcvtb library is not loaded retVal
function sockfd will be a positive integer for the socket file descriptor In case of error
elseif(strcmp(os,'mac')) LIBBCVTB
function if the BCVTB library can be loaded and if sockfd is not a negative then this function sends signal to the socket If sending a message to the socket was successful
fprintf([' ', 'Trying to send client error from MATLAB to the BCVTB.'])
int sendclienterror(const int *sockfd, const int *flaWri)
Writes an error flag to the socket stream.
static void XMLCALL end(void *data, const char *el)
Call back functions that will be used by the expat xml parser.
function[retVal, flaRea, simTimRea, dblValRea]