ekg2
GIT master
|
#include "ekg2.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "icq.h"
#include "misc.h"
#include "miscicq.h"
#include "icq_flap_handlers.h"
#include "icq_snac_handlers.h"
Definicje | |
#define | ICQ_FLAP_HANDLER(x) int x(session_t *s, unsigned char *buf, int len) |
#define | ICQ_FLAP_LOGIN 0x01 |
#define | ICQ_FLAP_DATA 0x02 |
#define | ICQ_FLAP_ERROR 0x03 |
#define | ICQ_FLAP_CLOSE 0x04 |
#define | ICQ_FLAP_PING 0x05 |
Definicje typów | |
typedef int(* | flap_handler_t) (session_t *, unsigned char *, int) |
Funkcje | |
static char * | _icq_makeflap (guint8 cmd, guint16 id, guint16 len) |
void | icq_makeflap (session_t *s, GString *pkt, guint8 cmd) |
static int | icq_flap_login (session_t *s, unsigned char *buf, int len) |
static int | icq_flap_data (session_t *s, unsigned char *buf, int len) |
static int | icq_flap_error (session_t *s, unsigned char *buf, int len) |
int | icq_flap_close_helper (session_t *s, unsigned char *buf, int len) |
static int | icq_flap_close (session_t *s, unsigned char *buf, int len) |
static int | icq_flap_ping (session_t *s, unsigned char *buf, int len) |
int | icq_flap_handler (session_t *s, GString *buffer) |
#define ICQ_FLAP_CLOSE 0x04 |
#define ICQ_FLAP_DATA 0x02 |
#define ICQ_FLAP_ERROR 0x03 |
#define ICQ_FLAP_LOGIN 0x01 |
#define ICQ_FLAP_PING 0x05 |
typedef int(* flap_handler_t) (session_t *, unsigned char *, int) |
|
inlinestatic |
|
static |
int icq_flap_close_helper | ( | session_t * | s, |
unsigned char * | buf, | ||
int | len | ||
) |
|
static |
|
static |
int icq_flap_handler | ( | session_t * | s, |
GString * | buffer | ||
) |
|
static |
|
static |
void icq_makeflap | ( | session_t * | s, |
GString * | pkt, | ||
guint8 | cmd | ||
) |