Setting a SilcMime attribute
Christian Dietrich
stettberger at brokenpipe.de
Mon May 28 19:50:15 CEST 2007
Hi,
i think i've found a bug in silc toolkit beta4, when i set a SilcMime as
an attribute (e.g. SILC_ATTRIBUTE_STATUS_MESSAGE) i only recieve binary
chunk on the other side.
I do it this way:
SilcTK::SilcMime mime = SilcTK::silc_mime_alloc();
SilcTK::silc_mime_add_field(mime, "MIME-Version", "1.0");
SilcTK::silc_mime_add_field(mime, "Content-Transfer-Encoding", "binary");
SilcTK::silc_mime_add_field(mime, "Content-Type",
"text/plain; charset=utf-8");
QCString content = QString(getAttributeMessage()).utf8();
SilcTK::silc_mime_add_data(mime, (unsigned char *)(const char *)content,
content.length());
silc_client_attribute_add(_client, _conn,
SILC_ATTRIBUTE_STATUS_MESSAGE,
mime, sizeof(*mime));
Also when i set status_message in silc-client beta5 i get the same
result.
Is there something wrong in setting the attribute, or is it a real bug
in libsilc?
didi
--
No documentation is better than bad documentation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.silcnet.org/pipermail/silc-devel/attachments/20070528/5303fd82/attachment.bin
More information about the silc-devel
mailing list