ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Definicje | Definicje typów | Funkcje
Dokumentacja pliku icq_flap_handlers.c
#include <stdint.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 <ekg/debug.h>
#include <ekg/dynstuff.h>
#include <ekg/protocol.h>
#include <ekg/sessions.h>
#include <ekg/plugins.h>
#include <ekg/xmalloc.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 (uint8_t cmd, uint16_t id, uint16_t len)
 
void icq_makeflap (session_t *s, string_t pkt, uint8_t cmd)
 
static ICQ_FLAP_HANDLER (icq_flap_login)
 
static ICQ_FLAP_HANDLER (icq_flap_data)
 
static ICQ_FLAP_HANDLER (icq_flap_error)
 
int icq_flap_close_helper (session_t *s, unsigned char *buf, int len)
 
static ICQ_FLAP_HANDLER (icq_flap_close)
 
static ICQ_FLAP_HANDLER (icq_flap_ping)
 
int icq_flap_handler (session_t *s, string_t buffer)
 

Dokumentacja definicji

#define ICQ_FLAP_CLOSE   0x04
#define ICQ_FLAP_DATA   0x02
#define ICQ_FLAP_ERROR   0x03
#define ICQ_FLAP_HANDLER (   x)    int x(session_t *s, unsigned char *buf, int len)
#define ICQ_FLAP_LOGIN   0x01
#define ICQ_FLAP_PING   0x05

Dokumentacja definicji typów

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

Dokumentacja funkcji

static char* _icq_makeflap ( uint8_t  cmd,
uint16_t  id,
uint16_t  len 
)
inlinestatic
int icq_flap_close_helper ( session_t s,
unsigned char *  buf,
int  len 
)
static ICQ_FLAP_HANDLER ( icq_flap_login  )
static
static ICQ_FLAP_HANDLER ( icq_flap_data  )
static
static ICQ_FLAP_HANDLER ( icq_flap_error  )
static
static ICQ_FLAP_HANDLER ( icq_flap_close  )
static
static ICQ_FLAP_HANDLER ( icq_flap_ping  )
static
int icq_flap_handler ( session_t s,
string_t  buffer 
)
void icq_makeflap ( session_t s,
string_t  pkt,
uint8_t  cmd 
)