]> andersk Git - libfaim.git/blobdiff - faimconfig.h
Misc cleanups.
[libfaim.git] / faimconfig.h
index 2584d59692af60ba6ebfe54cd5dd4ade37408b88..f61bc4ad067098d6bb060151a3785c170e001d79 100644 (file)
@@ -1,42 +1,81 @@
-#ifndef __FAIMCONFIG_H__
-#define __FAIMCONFIG_H__
-
 /*
-  faimconfig.h
-
 Contains various compile-time options that apply _only to the faim backend_.
-  Note that setting any of these options in a frontend header does not imply
-  that they'll get set here.  Notably, the 'debug' of this file is _not_ 
-  the same as the frontend 'debug'.  They can be different values.
-
 faimconfig.h
+ *
* Contains various compile-time options that apply _only to libfaim.
* Note that setting any of these options in a frontend header does not imply
* that they'll get set here.  Notably, the 'debug' of this file is _not_ 
* the same as the frontend 'debug'.  They can be different values.
+ *
  */
 
-/* 
-   set debug to be > 0 if you want debugging information spewing
-   on the attached tty.  set to 0 for daily use.  this value
-   is _not_ inherited by the frontend, only this backend.
+#ifndef __FAIMCONFIG_H__
+#define __FAIMCONFIG_H__
 
-   Default: 0  
+/* 
+ * set debug to be > 0 if you want debugging information spewing
+ * on the attached tty.  set to 0 for daily use.  this value
+ * is _not_ inherited by the frontend, only this backend.
+ *
+ * Default: 0  
 */
 #define debug 0 
 
 /*
-  define TIS_TELNET_PROXY if you have a TIS firewall (Gauntlet) and
-  you want to use FAIM through the firewall
-
-  Default: undefined
+ * Maximum number of connections the library can simultaneously
+ * handle.  Five is fairly arbitrary.  Only one client that I 
+ * know of uses more than one concurrently anyway (which means
+ * its only lightly tested too).  
+ *
+ * Default: 5
+ *
  */
-/* #define TIS_TELNET_PROXY "proxy.mydomain.com" */
+#define AIM_CONN_MAX 5 
 
+/*
+ *  define TIS_TELNET_PROXY if you have a TIS firewall (Gauntlet) and
+ * you want to use FAIM through the firewall
+ *
+ * XXX: The TIS firewall code hasn't existed, let alone worked,
+ *      in many, many months.  I'd be happy to take fixes.
+ *
+ * Default: undefined
+ */
+#undef TIS_TELNET_PROXY "proxy.mydomain.com"
 
-/* #define USE_SNAC_FOR_IMS */
-
-/* ---- these shouldn't need any changes ---- */
+/*
+ * USE_SNAC_FOR_IMS is an old feature that allowed better
+ * tracking of error messages by caching SNAC IDs of outgoing
+ * ICBMs and comparing them to incoming errors.  However,
+ * its a helluvalot of overhead for something that should
+ * rarely happen.  
+ *
+ * Default: undefined.  Hasn't been tested in quite a long
+ * time.  Most likely doesn't even compile.  
+ *
+ */
+#undef USE_SNAC_FOR_IMS
 
-/* authentication server of OSCAR */
+/*
+ * Default Authorizer server name and TCP port for the OSCAR farm.  
+ *
+ * You shouldn't need to change this unless you're writing
+ * your own server. 
+ *
+ * Note that only one server is needed to start the whole
+ * AIM process.  The later server addresses come from
+ * the authorizer service.
+ *
+ */
 #define FAIM_LOGIN_SERVER "login.oscar.aol.com"
-/* port on OSCAR authenticator to connect to */
 #define FAIM_LOGIN_PORT 5190
 
+/*
+ * MAX_READ_ERROR can be decreased if you find dead connections
+ * lingering around, and not getting detected, for too long.
+ *
+ * Default: 100
+ *
+ */
+#define MAX_READ_ERROR 100
 
 #endif /* __FAIMCONFIG_H__ */
This page took 0.12243 seconds and 4 git commands to generate.