ekg2
GIT master
|
#include "ekg2.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "jabber.h"
#include "jabber_dcc.h"
Definicje | |
#define | DCC_RULE(x) (!xstrncmp(x->uid, "xmpp:", 5) && !xstrcmp(x->uid+5, uin)) |
Funkcje | |
int | jabber_dcc_handle_recv (int type, int fd, watch_type_t watch, void *data) |
int | jabber_dcc_handle_send (int type, int fd, watch_type_t watch, void *data) |
int | jabber_dcc_handle_accepted (int type, int fd, watch_type_t watch, void *data) |
int | jabber_dcc_handle_accept (int type, int fd, watch_type_t watch, void *data) |
static watch_t * | jabber_dcc_init (int port) |
void | jabber_dcc_close_handler (struct dcc_s *d) |
dcc_t * | jabber_dcc_find (const char *uin, const char *id, const char *sid) |
int | jabber_dcc_postinit (void *data, va_list ap) |
Zmienne | |
int | jabber_dcc = 0 |
int | jabber_dcc_port = 0 |
char * | jabber_dcc_ip = NULL |
static int | jabber_dcc_fd = -1 |
#define DCC_RULE | ( | x | ) | (!xstrncmp(x->uid, "xmpp:", 5) && !xstrcmp(x->uid+5, uin)) |
void jabber_dcc_close_handler | ( | struct dcc_s * | d | ) |
dcc_t* jabber_dcc_find | ( | const char * | uin, |
const char * | id, | ||
const char * | sid | ||
) |
int jabber_dcc_handle_accept | ( | int | type, |
int | fd, | ||
watch_type_t | watch, | ||
void * | data | ||
) |
int jabber_dcc_handle_accepted | ( | int | type, |
int | fd, | ||
watch_type_t | watch, | ||
void * | data | ||
) |
int jabber_dcc_handle_recv | ( | int | type, |
int | fd, | ||
watch_type_t | watch, | ||
void * | data | ||
) |
int jabber_dcc_handle_send | ( | int | type, |
int | fd, | ||
watch_type_t | watch, | ||
void * | data | ||
) |
|
static |
int jabber_dcc_postinit | ( | void * | data, |
va_list | ap | ||
) |
int jabber_dcc = 0 |
|
static |
char* jabber_dcc_ip = NULL |
int jabber_dcc_port = 0 |