]> andersk Git - libfaim.git/commitdiff
- Fri Dec 15 20:41:15 UTC 2000
authormid <mid>
Fri, 15 Dec 2000 20:44:40 +0000 (20:44 +0000)
committermid <mid>
Fri, 15 Dec 2000 20:44:40 +0000 (20:44 +0000)
  - Revise README
  - Make aimdebugd compile
  - Typos

CHANGES
README
aim_rxhandlers.c
utils/aimdebugd/aimdebugd.c
utils/aimdebugd/icbm.c

diff --git a/CHANGES b/CHANGES
index d85c915b06cae6f080d409f5b393a873e6c147e5..53311f4aac1d44f54863a663c5b5c77109e1c317 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,11 @@
 
 No release numbers
 ------------------
+ - Fri Dec 15 20:41:15 UTC 2000
+  - Revise README
+  - Make aimdebugd compile
+  - Typos
+
  - Fri Dec 15 02:04:12 UTC 2000
   - Parse rate changes *properly*
   - Add sample code to faimtest demonstrating my approximations
diff --git a/README b/README
index 30a067fa1366e34919874e1dabfdea3cd15f2beb..c42d1bbb7d80b0d94c06ca8bf870f38b0a56596e 100644 (file)
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ libfaim pre-0.90 or so
 
 This is libfaim, the purpose of which is to implement as much as the
 AOL AIM/OSCAR protocol as possible (which should be all of it).  After
-over a year of development, its still nowhere close.  
+over two years of development, its still nowhere close.  
 
 This is not a full client and never will be.  libfaim only implements
 the routines to implement a client (ie, there's no user interface).  
@@ -16,7 +16,11 @@ I would not recommend using this version of libfaim in any form yet.  It's
 beta-quality and I know it leaks memory quite badly.  It seems fairly
 stable, however.  YMMV, YAYOR, etc.  I suppose I should say regardless of
 that warning, that several clients use it and people use those clients
-on a daily basis (in particular, me).
+on a daily basis (in particular, me).  Also, you're probably reading this 
+from a CVS version, since I haven't made a release in a very long time.  
+The CVS version changes fairly rapidly when I'm in the mood, so a version
+you checked out an hour ago may be better or worse than a version you 
+check out now.  
 
 
 Building
index 55a00d59c37985c97139ed84949188f4a84089f9..c0a8c72d06aca1c7f35004a308ccbdc697cf5223 100644 (file)
@@ -480,7 +480,7 @@ faim_export int aim_rxdispatch(struct aim_session_t *sess)
            workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, AIM_CB_FAM_BUD, AIM_CB_BUD_DEFAULT, workingPtr);
          }
          break;
-       case 0x0004: /* Family: Messeging */
+       case 0x0004: /* Family: Messaging */
          switch (subtype) {
          case 0x0001:
            workingPtr->handled = aim_parse_msgerror_middle(sess, workingPtr);
@@ -533,6 +533,10 @@ faim_export int aim_rxdispatch(struct aim_session_t *sess)
            workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, AIM_CB_FAM_STS, AIM_CB_STS_DEFAULT, workingPtr);
          break;
        }
+       case 0x0013: {
+         printf("lalala: 0x%04x/0x%04x\n", family, subtype);
+         break;
+       }
        case AIM_CB_FAM_SPECIAL: 
          workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, family, subtype, workingPtr);
          break;
index 1779a4d50a9a67bfc64fb962ae54bb2f2a301540..6245b3faebdd6da6e253fa456db06b55bdb5f599 100644 (file)
@@ -83,13 +83,15 @@ int debugconn_connect(struct aim_session_t *sess, struct command_rx_struct *comm
 int parsescriptline(struct aim_session_t *sess, struct aim_conn_t **conn); /* file.c */
 
 int handlechild(int fd, char *scriptname)
-{      
-  int stayalive = 1, selstat;
+{     
+  int alive;
+  int selstat;
   client_t client;
   struct aim_conn_t *inconn, *waitingconn;
 
-  aim_session_init(&client.sess);
-  
+  aim_session_init(&client.sess, 0);
+  //client.sess.tx_enqueue = aim_tx_enqueue__immediate;
+
   if (!(inconn = aim_newconn(&client.sess, AIM_CONN_TYPE_BOS, NULL))) {
     printf(RUNPREFIX "unable to allocate client structures\n");
     exit(-1);
@@ -111,12 +113,13 @@ int handlechild(int fd, char *scriptname)
 
   aim_debugconn_sendconnect(&client.sess, inconn);
 
-  while (stayalive) {
+  alive = 1;
+  while (alive) {
     waitingconn = aim_select(&client.sess, NULL, &selstat);
     
     switch(selstat) {
     case -1: /* error */
-      stayalive = 0; /* fall through and hit aim_logoff() */
+      alive = 0; /* fall through and hit aim_logoff() */
       break;
     case 0: /* nothing pending */
       break;
@@ -127,13 +130,13 @@ int handlechild(int fd, char *scriptname)
       if (waitingconn->fd == scriptfd) {
        if (clientready) {
          if (parsescriptline(&client.sess, &waitingconn) < 0) {
-           stayalive = 0;
+           alive = 0;
          }
        }
       } else {
        if (aim_get_command(&client.sess, waitingconn) < 0) {
          printf(RUNPREFIX "connection error\n");
-         stayalive = 0; /* fall through to aim_logoff() */
+         alive = 0; /* fall through to aim_logoff() */
        } else {
          aim_rxdispatch(&client.sess);
        }
@@ -146,6 +149,7 @@ int handlechild(int fd, char *scriptname)
 
   printf(RUNPREFIX "client disconnected\n");
 
+  close(fd);
   aim_logoff(&client.sess);
 
   return fd;
index db4296954d33089d13f0ad3eb82ef6c0999e86d5..6835cef24c68f581d627587cb39fe9cd93146384 100644 (file)
@@ -71,7 +71,7 @@ int sendimtoclient(struct aim_session_t *sess, struct aim_conn_t *conn,
   i += aimutil_put16(tx->data+i, 0x0000);
 
   /* class */
-  aim_addtlvtochain16(&tlvlist, 0x0001, AIM_CLASS_FREE | AIM_CLASS_TRIAL);
+  aim_addtlvtochain16(&tlvlist, 0x0001, AIM_FLAG_FREE | AIM_FLAG_UNCONFIRMED);
 
   /* member-since date */
   aim_addtlvtochain32(&tlvlist, 0x0002, 0);
This page took 0.06246 seconds and 5 git commands to generate.