Hi All,

I'm sending ROSTER REQ SNAC request from an AOL Server (4.5) to the Roster 
Server which has a SNAC String as one of field defined in the SNAC as 
follows :

datatype ROSTER_RSP
    ..............
    field SNAC_Str       objtype
    ........

While creating SNAC object I'm setting the above variable as follows:

snac.objectSet $rosterReq "objtype" [staf.createSNACString "STaF"] 1

The createSNACString proc :
---------------------------
proc staf.createSNACString {value} {
    set stringObj [snac.objectInit SNAC_Str [snac.getDataType]]
    snac.objectSetNum $stringObj "length" [string length $value]
    snac.objectSet $stringObj "value" $value 1
    return $stringObj
}

But the roster server is unable to process the above SNAC String. The log 
message from Roster Server states that "not enough data left to get". I'm 
unable to trace the root cause for the problem. 

Note: I tried without setting the length attribute, but no luck.

Log :
10/111932 notice(6) run_red: central_roster_srv-d02: cddl-m01:17860: SNAC0: 
snac_stream.c:1103: SNAC_Stream_Get_Raw: Q=: >> Not enough data left to get 
21603 bytes.
10/111932 err(4) run_red: central_roster_srv-d02: cddl-m01:17860: 
ROSTER8998: roster_snac.c:851: process_req_data: Q=: >> SNAC_CHECK FAILURE: 
SNAC_Stream_Get_Str(stream, "objtype", &str_len, &sval)

Any suggestions on how to fix this issue?

Thanks in advance
Chandrahasa
 


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to