Ignore:
Timestamp:
2007-06-04T11:32:37Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
54f2f55
Parents:
6286f80
Message:

Added a real XML-console to the Jabber module! Add the handle "xmlconsole"
(without any @server part) to your contact list and you'll see all XMPP
traffic going in and out, and messages sent to the buddy will be sent as
packets to the server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r6286f80 rbb95d43  
    3232typedef enum
    3333{
    34         JFLAG_STREAM_STARTED = 1,       /* Set when we detected the beginning of the stream
     34        JFLAG_STREAM_STARTED = 1,       /* Set when we detected the beginning of the stream
    3535                                           and want to do auth. */
    36         JFLAG_AUTHENTICATED = 2,        /* Set when we're successfully authenticatd. */
    37         JFLAG_STREAM_RESTART = 4,       /* Set when we want to restart the stream (after
     36        JFLAG_AUTHENTICATED = 2,        /* Set when we're successfully authenticatd. */
     37        JFLAG_STREAM_RESTART = 4,       /* Set when we want to restart the stream (after
    3838                                           SASL or TLS). */
    39         JFLAG_WAIT_SESSION = 8,         /* Set if we sent a <session> tag and need a reply
     39        JFLAG_WAIT_SESSION = 8,         /* Set if we sent a <session> tag and need a reply
    4040                                           before we continue. */
    41         JFLAG_WAIT_BIND = 16,           /* ... for <bind> tag. */
    42         JFLAG_WANT_TYPING = 32,         /* Set if we ever sent a typing notification, this
     41        JFLAG_WAIT_BIND = 16,           /* ... for <bind> tag. */
     42        JFLAG_WANT_TYPING = 32,         /* Set if we ever sent a typing notification, this
    4343                                           activates all XEP-85 related code. */
     44        JFLAG_XMLCONSOLE = 64,          /* If the user added an xmlconsole buddy. */
    4445} jabber_flags_t;
    4546
     
    5657} jabber_buddy_flags_t;
    5758
    58 #define JABBER_PORT_DEFAULT "5222"
    59 #define JABBER_PORT_MIN 5220
    60 #define JABBER_PORT_MAX 5229
    61 
    6259struct jabber_data
    6360{
     
    124121        struct jabber_buddy *me;
    125122};
     123
     124#define JABBER_XMLCONSOLE_HANDLE "xmlconsole"
     125
     126#define JABBER_PORT_DEFAULT "5222"
     127#define JABBER_PORT_MIN 5220
     128#define JABBER_PORT_MAX 5229
    126129
    127130/* Prefixes to use for packet IDs (mainly for IQ packets ATM). Usually the
Note: See TracChangeset for help on using the changeset viewer.