Products | Versions |
---|---|
TIBCO SmartSockets | - |
Not Applicable | - |
Resolution:
A space is a legal character in a subject name. Programmatically, on a TipcSrvSubjectSetSubscribe the function TipcSubjectValid validates the subject. The validation returns TRUE if the subject string comes across any character that is "NOT A SPACE && NOT A FORWARD SLASH" (that is, a subject with only '/'s and ' 's is invalid).
Here's the code snippet:
while ('\0' != *str) {
if (!isspace(*str) && '/' != *str) {
return T_TRUE;
}
str++;
}
return T_FALSE;
In the following example the second character is NOT A SPACE && NOT A FORWARD slash so the subject in the example IS valid.
TipcSrvSubjectSetSubscribe("/t utorial/lesson2",TRUE);