jingle-s5b/s5b.h
author Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Wed, 01 Sep 2010 20:34:23 +0200
changeset 166 c42c167a2a5c
child 167 97f93fa3cd95
permissions -rw-r--r--
Rename socks5.c to s5b.c, remove remaining tabulation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
166
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     1
#ifndef __JINGLESOCKS5_H__
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     2
#define __JINGLESOCKS5_H__ 1
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     3
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     4
#include <glib.h>
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     5
#include <gio/gio.h>
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     6
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     7
#define NS_JINGLE_TRANSPORT_SOCKS5 "urn:xmpp:jingle:transports:s5b:1"
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     8
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
     9
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    10
typedef enum {
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    11
  JINGLE_S5B_DIRECT,
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    12
  JINGLE_S5B_ASSISTED,
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    13
  JINGLE_S5B_TUNNEL,
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    14
  JINGLE_S5B_PROXY
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    15
} JingleS5BType;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    16
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    17
typedef enum {
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    18
  JINGLE_S5B_TCP,
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    19
  JINGLE_S5B_UDP
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    20
} JingleS5BModes;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    21
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    22
typedef struct {
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    23
  JingleS5BModes mode;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    24
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    25
  const gchar *sid;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    26
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    27
  GSocketConnection *connection;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    28
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    29
  GCancellable *cancelconnect;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    30
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    31
  GSocketListener *listener;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    32
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    33
  GSocketClient *client;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    34
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    35
  /**
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    36
   * @brief This is the list of the other client's candidates
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    37
   * 
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    38
   * It should always be priority ordered.
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    39
   */
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    40
  GSList *candidates;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    41
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    42
  /**
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    43
   * @brief This is our list of candidates
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    44
   */
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    45
  GSList *ourcandidates;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    46
} JingleS5B;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    47
 
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    48
typedef struct {
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    49
  const gchar *cid;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    50
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    51
  GInetAddress *host;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    52
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    53
  const gchar *jid;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    54
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    55
  guint16 port;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    56
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    57
  guint64 priority;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    58
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    59
  JingleS5BType type;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    60
} S5BCandidate;
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    61
c42c167a2a5c Rename socks5.c to s5b.c, remove remaining tabulation
Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
parents:
diff changeset
    62
#endif