Changeset 862371b for libfaim/service.c


Ignore:
Timestamp:
Jun 29, 2003, 1:47:04 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e016fc2
Parents:
03ad7b2
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/service.c

    r5e53c4a r862371b  
    11/*
    2  * Group 1. This is a very special group.  All connections support
     2 * Family 0x0001 - This is a very special group.  All connections support
    33 * this group, as it does some particularly good things (like rate limiting).
    44 */
     
    1010#include "md5.h"
    1111
    12 /* Client Online (group 1, subtype 2) */
     12/* Subtype 0x0002 - Client Online */
    1313faim_export int aim_clientready(aim_session_t *sess, aim_conn_t *conn)
    1414{
     
    4949
    5050/*
    51  * Host Online (group 1, type 3)
     51 * Subtype 0x0003 - Host Online
    5252 *
    5353 * See comments in conn.c about how the group associations are supposed
     
    9292}
    9393
    94 /* Service request (group 1, type 4) */
     94/* Subtype 0x0004 - Service request */
    9595faim_export int aim_reqservice(aim_session_t *sess, aim_conn_t *conn, fu16_t serviceid)
    9696{
     
    9898}
    9999
    100 /* Redirect (group 1, type 5) */
     100/* Subtype 0x0005 - Redirect */
    101101static int redirect(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    102102{
     
    148148}
    149149
    150 /* Request Rate Information. (group 1, type 6) */
     150/* Subtype 0x0006 - Request Rate Information. */
    151151faim_internal int aim_reqrates(aim_session_t *sess, aim_conn_t *conn)
    152152{
     
    258258}
    259259
    260 /* Rate Parameters (group 1, type 7) */
     260/* Subtype 0x0007 - Rate Parameters */
    261261static int rateresp(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    262262{
     
    345345}
    346346
    347 /* Add Rate Parameter (group 1, type 8) */
     347/* Subtype 0x0008 - Add Rate Parameter */
    348348faim_internal int aim_rates_addparam(aim_session_t *sess, aim_conn_t *conn)
    349349{
     
    367367}
    368368
    369 /* Delete Rate Parameter (group 1, type 9) */
     369/* Subtype 0x0009 - Delete Rate Parameter */
    370370faim_internal int aim_rates_delparam(aim_session_t *sess, aim_conn_t *conn)
    371371{
     
    389389}
    390390
    391 /* Rate Change (group 1, type 0x0a) */
     391/* Subtype 0x000a - Rate Change */
    392392static int ratechange(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    393393{
     
    414414
    415415/*
    416  * How Migrations work. 
     416 * How Migrations work.
    417417 *
    418418 * The server sends a Server Pause message, which the client should respond to
     
    426426 */
    427427
    428 /* Service Pause (group 1, type 0x0b) */
     428/* Subtype 0x000b - Service Pause */
    429429static int serverpause(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    430430{
     
    438438
    439439/*
    440  * Service Pause Acknowledgement (group 1, type 0x0c)
     440 * Subtype 0x000c - Service Pause Acknowledgement
    441441 *
    442442 * It is rather important that aim_sendpauseack() gets called for the exact
     
    474474}
    475475
    476 /* Service Resume (group 1, type 0x0d) */
     476/* Subtype 0x000d - Service Resume */
    477477static int serverresume(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    478478{
     
    485485}
    486486
    487 /* Request self-info (group 1, type 0x0e) */
     487/* Subtype 0x000e - Request self-info */
    488488faim_export int aim_reqpersonalinfo(aim_session_t *sess, aim_conn_t *conn)
    489489{
     
    491491}
    492492
    493 /* Self User Info (group 1, type 0x0f) */
     493/* Subtype 0x000f - Self User Info */
    494494static int selfinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    495495{
     
    505505}
    506506
    507 /* Evil Notification (group 1, type 0x10) */
     507/* Subtype 0x0010 - Evil Notification */
    508508static int evilnotify(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    509509{
     
    526526
    527527/*
    528  * Idle Notification (group 1, type 0x11)
     528 * Subtype 0x0011 - Idle Notification
    529529 *
    530530 * Should set your current idle time in seconds.  Note that this should
     
    540540
    541541/*
    542  * Service Migrate (group 1, type 0x12)
     542 * Subtype 0x0012 - Service Migrate
    543543 *
    544544 * This is the final SNAC sent on the original connection during a migration.
     
    592592}
    593593
    594 /* Message of the Day (group 1, type 0x13) */
     594/* Subtype 0x0013 - Message of the Day */
    595595static int motd(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    596596{
     
    632632
    633633/*
    634  * Set privacy flags (group 1, type 0x14)
     634 * Subtype 0x0014 - Set privacy flags
    635635 *
    636636 * Normally 0x03.
     
    646646
    647647/*
    648  * No-op (group 1, type 0x16)
     648 * Subtype 0x0016 - No-op
    649649 *
    650650 * WinAIM sends these every 4min or so to keep the connection alive.  Its not
    651  * real necessary.
     651 * really necessary.
    652652 *
    653653 */
     
    658658
    659659/*
    660  * Set client versions (group 1, subtype 0x17)
     660 * Subtype 0x0017 - Set client versions
    661661 *
    662662 * If you've seen the clientonline/clientready SNAC you're probably
     
    705705}
    706706
    707 /* Host versions (group 1, subtype 0x18) */
     707/* Subtype 0x0018 - Host versions */
    708708static int hostversions(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    709709{
     
    725725
    726726/*
    727  * Set Extended Status (group 1, type 0x1e)
     727 * Subtype 0x001e - Set Extended Status
    728728 *
    729729 * Currently only works if using ICQ.
     
    791791 *
    792792 */
    793 /* Client verification (group 1, subtype 0x1f) */
     793/* Subtype 0x001f - Client verification */
    794794static int memrequest(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    795795{
     
    816816}
    817817
    818 #if 0 
     818#if 0
    819819static void dumpbox(aim_session_t *sess, unsigned char *buf, int len)
    820820{
     
    839839#endif
    840840
    841 /* Client verification reply (group 1, subtype 0x20) */
     841/* Subtype 0x0020 - Client verification reply */
    842842faim_export int aim_sendmemblock(aim_session_t *sess, aim_conn_t *conn, fu32_t offset, fu32_t len, const fu8_t *buf, fu8_t flag)
    843843{
     
    970970        return 0;
    971971}
    972 
Note: See TracChangeset for help on using the changeset viewer.