ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
jabber_dcc.h
Idź do dokumentacji tego pliku.
1 #ifndef __JABBER_DCC_H
2 #define __JABBER_DCC_H
3 
4 #define JABBER_DEFAULT_DCC_PORT 6000 /* XXX */
5 
6 #include <stdio.h>
7 
8 
11  JABBER_DCC_PROTOCOL_BYTESTREAMS, /* http://www.jabber.org/jeps/jep-0065.html */
12  JABBER_DCC_PROTOCOL_IBB, /* http://www.jabber.org/jeps/jep-0047.html */
13  JABBER_DCC_PROTOCOL_WEBDAV, /* http://www.jabber.org/jeps/jep-0129.html */ /* DON'T IMPLEMENT IT UNTILL IT WILL BE STARNDARD DRAFT */
14 };
15 
21 };
22 
23 /* <JABBER_DCC_PROTOCOL_BYTESTREAMS> */
25  char *jid;
26  char *ip;
27  int port;
28 };
29 
30 typedef struct {
31  int validate; /* should be: JABBER_DCC_PROTOCOL_BYTESTREAMS */
33 
37 
38 /* </JABBER_DCC_PROTOCOL_BYTESTREAMS> */
39 
40 
41 typedef struct {
42  FILE *fd;
43  int sfd;
45 
46  char *req;
47  char *sid;
49  union { /* priv_data data based on protocol */
50  jabber_dcc_bytestream_t *bytestream; /* for JABBER_DCC_PROTOCOL_BYTESTREAMS */
51  void *other; /* XXX */
52  } priv_data;
53 } jabber_dcc_t;
54 
55 
56 dcc_t *jabber_dcc_find(const char *uin, const char *id, const char *sid);
57 void jabber_dcc_close_handler(struct dcc_s *d);
58 
60 
62 extern int jabber_dcc;
63 extern int jabber_dcc_port;
64 extern char *jabber_dcc_ip;
65 extern int jabber_dcc;
66 
67 #endif