* n seconds of no connection. -- mid
*/
-#ifdef USE_SNAC_FOR_IMS
- {
- struct aim_snac_t snac;
-
- snac.id = sess->snac_nextid;
- snac.family = 0x0004;
- snac.type = 0x0006;
- snac.flags = 0x0000;
-
- snac.data = malloc(strlen(destsn)+1);
- memcpy(snac.data, destsn, strlen(destsn)+1);
-
- aim_newsnac(sess, &snac);
-
- aim_cleansnacs(sess, 60); /* clean out all SNACs over 60sec old */
- }
-#endif
-
return (newconn);
}
* if (pos + chunksize > fh->size), we only send as much data as we
* can get (ie: up to fh->size.
*/
-
faim_export int aim_getfile_send_chunk(struct aim_conn_t *conn, FILE *tosend, struct aim_fileheader_t *fh, int pos, int bufsize)
{
int bufpos;
* n seconds of no connection. -- mid
*/
-#ifdef USE_SNAC_FOR_IMS
- {
- struct aim_snac_t snac;
-
- snac.id = sess->snac_nextid;
- snac.family = 0x0004;
- snac.type = 0x0006;
- snac.flags = 0x0000;
-
- snac.data = malloc(strlen(destsn)+1);
- memcpy(snac.data, destsn, strlen(destsn)+1);
-
- aim_newsnac(sess, &snac);
-
- aim_cleansnacs(sess, 60); /* clean out all SNACs over 60sec old */
- }
-#endif
-
return newconn;
}