Changeset 862371b for libfaim/service.c
- Timestamp:
- Jun 29, 2003, 1:47:04 PM (22 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfaim/service.c
r5e53c4a r862371b 1 1 /* 2 * Group 1.This is a very special group. All connections support2 * Family 0x0001 - This is a very special group. All connections support 3 3 * this group, as it does some particularly good things (like rate limiting). 4 4 */ … … 10 10 #include "md5.h" 11 11 12 /* Client Online (group 1, subtype 2)*/12 /* Subtype 0x0002 - Client Online */ 13 13 faim_export int aim_clientready(aim_session_t *sess, aim_conn_t *conn) 14 14 { … … 49 49 50 50 /* 51 * Host Online (group 1, type 3)51 * Subtype 0x0003 - Host Online 52 52 * 53 53 * See comments in conn.c about how the group associations are supposed … … 92 92 } 93 93 94 /* S ervice request (group 1, type 4)*/94 /* Subtype 0x0004 - Service request */ 95 95 faim_export int aim_reqservice(aim_session_t *sess, aim_conn_t *conn, fu16_t serviceid) 96 96 { … … 98 98 } 99 99 100 /* Redirect (group 1, type 5)*/100 /* Subtype 0x0005 - Redirect */ 101 101 static int redirect(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 102 102 { … … 148 148 } 149 149 150 /* Request Rate Information. (group 1, type 6)*/150 /* Subtype 0x0006 - Request Rate Information. */ 151 151 faim_internal int aim_reqrates(aim_session_t *sess, aim_conn_t *conn) 152 152 { … … 258 258 } 259 259 260 /* Rate Parameters (group 1, type 7)*/260 /* Subtype 0x0007 - Rate Parameters */ 261 261 static int rateresp(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 262 262 { … … 345 345 } 346 346 347 /* Add Rate Parameter (group 1, type 8)*/347 /* Subtype 0x0008 - Add Rate Parameter */ 348 348 faim_internal int aim_rates_addparam(aim_session_t *sess, aim_conn_t *conn) 349 349 { … … 367 367 } 368 368 369 /* Delete Rate Parameter (group 1, type 9)*/369 /* Subtype 0x0009 - Delete Rate Parameter */ 370 370 faim_internal int aim_rates_delparam(aim_session_t *sess, aim_conn_t *conn) 371 371 { … … 389 389 } 390 390 391 /* Rate Change (group 1, type 0x0a)*/391 /* Subtype 0x000a - Rate Change */ 392 392 static int ratechange(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 393 393 { … … 414 414 415 415 /* 416 * How Migrations work. 416 * How Migrations work. 417 417 * 418 418 * The server sends a Server Pause message, which the client should respond to … … 426 426 */ 427 427 428 /* S ervice Pause (group 1, type 0x0b)*/428 /* Subtype 0x000b - Service Pause */ 429 429 static int serverpause(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 430 430 { … … 438 438 439 439 /* 440 * S ervice Pause Acknowledgement (group 1, type 0x0c)440 * Subtype 0x000c - Service Pause Acknowledgement 441 441 * 442 442 * It is rather important that aim_sendpauseack() gets called for the exact … … 474 474 } 475 475 476 /* S ervice Resume (group 1, type 0x0d)*/476 /* Subtype 0x000d - Service Resume */ 477 477 static int serverresume(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 478 478 { … … 485 485 } 486 486 487 /* Request self-info (group 1, type 0x0e)*/487 /* Subtype 0x000e - Request self-info */ 488 488 faim_export int aim_reqpersonalinfo(aim_session_t *sess, aim_conn_t *conn) 489 489 { … … 491 491 } 492 492 493 /* S elf User Info (group 1, type 0x0f)*/493 /* Subtype 0x000f - Self User Info */ 494 494 static int selfinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 495 495 { … … 505 505 } 506 506 507 /* Evil Notification (group 1, type 0x10)*/507 /* Subtype 0x0010 - Evil Notification */ 508 508 static int evilnotify(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 509 509 { … … 526 526 527 527 /* 528 * Idle Notification (group 1, type 0x11)528 * Subtype 0x0011 - Idle Notification 529 529 * 530 530 * Should set your current idle time in seconds. Note that this should … … 540 540 541 541 /* 542 * S ervice Migrate (group 1, type 0x12)542 * Subtype 0x0012 - Service Migrate 543 543 * 544 544 * This is the final SNAC sent on the original connection during a migration. … … 592 592 } 593 593 594 /* Message of the Day (group 1, type 0x13)*/594 /* Subtype 0x0013 - Message of the Day */ 595 595 static int motd(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 596 596 { … … 632 632 633 633 /* 634 * S et privacy flags (group 1, type 0x14)634 * Subtype 0x0014 - Set privacy flags 635 635 * 636 636 * Normally 0x03. … … 646 646 647 647 /* 648 * No-op (group 1, type 0x16)648 * Subtype 0x0016 - No-op 649 649 * 650 650 * WinAIM sends these every 4min or so to keep the connection alive. Its not 651 * real necessary.651 * really necessary. 652 652 * 653 653 */ … … 658 658 659 659 /* 660 * S et client versions (group 1, subtype 0x17)660 * Subtype 0x0017 - Set client versions 661 661 * 662 662 * If you've seen the clientonline/clientready SNAC you're probably … … 705 705 } 706 706 707 /* Host versions (group 1, subtype 0x18)*/707 /* Subtype 0x0018 - Host versions */ 708 708 static int hostversions(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 709 709 { … … 725 725 726 726 /* 727 * S et Extended Status (group 1, type 0x1e)727 * Subtype 0x001e - Set Extended Status 728 728 * 729 729 * Currently only works if using ICQ. … … 791 791 * 792 792 */ 793 /* Client verification (group 1, subtype 0x1f)*/793 /* Subtype 0x001f - Client verification */ 794 794 static int memrequest(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 795 795 { … … 816 816 } 817 817 818 #if 0 818 #if 0 819 819 static void dumpbox(aim_session_t *sess, unsigned char *buf, int len) 820 820 { … … 839 839 #endif 840 840 841 /* Client verification reply (group 1, subtype 0x20)*/841 /* Subtype 0x0020 - Client verification reply */ 842 842 faim_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) 843 843 { … … 970 970 return 0; 971 971 } 972
Note: See TracChangeset
for help on using the changeset viewer.