libgadu
1.12.2
|
Definicje | |
#define | GG_SESSION_CHECK(gs, result) |
#define | GG_SESSION_CHECK_CONNECTED(gs, result) |
#define | GG_SESSION_IS_IDLE(gs) ((gs)->state == GG_STATE_IDLE) |
#define | GG_SESSION_IS_CONNECTING(gs) ((gs)->state != GG_STATE_IDLE && (gs)->state != GG_STATE_CONNECTED) |
#define | GG_SESSION_IS_CONNECTED(gs) ((gs)->state == GG_STATE_CONNECTED) |
Funkcje | |
int | gg_session_handle_packet (struct gg_session *gs, uint32_t type, const char *ptr, size_t len, struct gg_event *ge) |
#define GG_SESSION_CHECK | ( | gs, | |
result | |||
) |
#define GG_SESSION_CHECK_CONNECTED | ( | gs, | |
result | |||
) |
#define GG_SESSION_IS_IDLE | ( | gs | ) | ((gs)->state == GG_STATE_IDLE) |
#define GG_SESSION_IS_CONNECTING | ( | gs | ) | ((gs)->state != GG_STATE_IDLE && (gs)->state != GG_STATE_CONNECTED) |
#define GG_SESSION_IS_CONNECTED | ( | gs | ) | ((gs)->state == GG_STATE_CONNECTED) |
int gg_session_handle_packet | ( | struct gg_session * | gs, |
uint32_t | type, | ||
const char * | ptr, | ||
size_t | len, | ||
struct gg_event * | ge | ||
) |
Obsługuje przychodzący pakiet danych.
gs | Struktura sesji | |
type | Typ pakietu | |
ptr | Wskaźnik do bufora pakietu | |
len | Długość bufora pakietu | |
[out] | ge | Struktura zdarzenia |