ekg2  GIT master
Definicje | Definicje typów | Funkcje
Dokumentacja pliku icq_flap_handlers.c
#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"
Wykres zależności załączania dla icq_flap_handlers.c:

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)
 

Dokumentacja definicji

◆ ICQ_FLAP_CLOSE

#define ICQ_FLAP_CLOSE   0x04

◆ ICQ_FLAP_DATA

#define ICQ_FLAP_DATA   0x02

◆ ICQ_FLAP_ERROR

#define ICQ_FLAP_ERROR   0x03

◆ ICQ_FLAP_HANDLER

#define ICQ_FLAP_HANDLER (   x)    int x(session_t *s, unsigned char *buf, int len)

◆ ICQ_FLAP_LOGIN

#define ICQ_FLAP_LOGIN   0x01

◆ ICQ_FLAP_PING

#define ICQ_FLAP_PING   0x05

Dokumentacja definicji typów

◆ flap_handler_t

typedef int(* flap_handler_t) (session_t *, unsigned char *, int)

Dokumentacja funkcji

◆ _icq_makeflap()

static char* _icq_makeflap ( guint8  cmd,
guint16  id,
guint16  len 
)
inlinestatic

◆ icq_flap_close()

static int icq_flap_close ( session_t s,
unsigned char *  buf,
int  len 
)
static

◆ icq_flap_close_helper()

int icq_flap_close_helper ( session_t s,
unsigned char *  buf,
int  len 
)

◆ icq_flap_data()

static int icq_flap_data ( session_t s,
unsigned char *  buf,
int  len 
)
static

◆ icq_flap_error()

static int icq_flap_error ( session_t s,
unsigned char *  buf,
int  len 
)
static

◆ icq_flap_handler()

int icq_flap_handler ( session_t s,
GString *  buffer 
)

◆ icq_flap_login()

static int icq_flap_login ( session_t s,
unsigned char *  buf,
int  len 
)
static

◆ icq_flap_ping()

static int icq_flap_ping ( session_t s,
unsigned char *  buf,
int  len 
)
static

◆ icq_makeflap()

void icq_makeflap ( session_t s,
GString *  pkt,
guint8  cmd 
)