| 224 */ |
224 */ |
| 225 aimbs_put8(&fr->data, strlen(args->destsn)); |
225 aimbs_put8(&fr->data, strlen(args->destsn)); |
| 226 aimbs_putraw(&fr->data, args->destsn, strlen(args->destsn)); |
226 aimbs_putraw(&fr->data, args->destsn, strlen(args->destsn)); |
| 227 |
227 |
| 228 /* |
228 /* |
| 229 * metaTLV start. |
229 * Message TLV (type 2). |
| 230 */ |
230 */ |
| 231 aimbs_put16(&fr->data, 0x0002); |
231 aimbs_put16(&fr->data, 0x0002); |
| 232 aimbs_put16(&fr->data, msgtlvlen); |
232 aimbs_put16(&fr->data, msgtlvlen); |
| 233 |
233 |
| 234 /* |
234 /* |
| 332 aimbs_put16(&fr->data, 0x0000); |
332 aimbs_put16(&fr->data, 0x0000); |
| 333 } |
333 } |
| 334 |
334 |
| 335 aim_tx_enqueue(sess, fr); |
335 aim_tx_enqueue(sess, fr); |
| 336 |
336 |
| 337 #if 1 /* XXX do this with autoconf or something... */ |
337 if (!(sess->flags & AIM_SESS_FLAGS_DONTTIMEOUTONICBM)) |
| 338 aim_cleansnacs(sess, 60); /* clean out all SNACs over 60sec old */ |
338 aim_cleansnacs(sess, 60); /* clean out SNACs over 60sec old */ |
| 339 #endif |
|
| 340 |
339 |
| 341 return 0; |
340 return 0; |
| 342 } |
341 } |
| 343 |
342 |
| 344 /* |
343 /* |