code
unsigned int length;
DDS_DynamicData *instance = NULL;
status = DDS_DynamicDataReader_read((DDS_DynamicDataReader *)portDataReader, &portSequence, &portInfoSeq,
DDS_LENGTH_UNLIMITED, DDS_ANY_SAMPLE_STATE, DDS_ANY_VIEW_STATE, DDS_ANY_INSTANCE_STATE);/*DDS_NOT_ALIVE_INSTANCE_STATE*/
if (status != DDS_RETCODE_OK)
{
return STAT_ERROR;
}
the return value is DDS_RETCODE_NO_DATA,I did't set the listener and waitset.
this is my code,who can help me?
A sample may be a data sample, or it may be a state notification (ie, "DDS_NOT_ALIVE_INSTANCE_STATE" or similar).
You got one of the latter ones.
Its a state notification, thanks a lot.