data
struktury gg_http
zawiera wskaźnik do struktury gg_pubdir
. Ta ostatnia w polu success
określa, czy operacja się powiodła.
Funkcje | |
struct gg_http * | gg_remind_passwd3 (uin_t uin, const char *email, const char *tokenid, const char *tokenval, int async) |
Wysyła hasło użytkownika na e-mail. | |
int | gg_remind_watch_fd (struct gg_httpd *h) |
Funkcja wywoływana po zaobserwowaniu zmian na deskryptorze połączenia. | |
void | gg_remind_free (struct gg_http *h) |
Zwalnia zasoby po operacji. |
struct gg_http* gg_remind_passwd3 | ( | uin_t | uin, | |
const char * | email, | |||
const char * | tokenid, | |||
const char * | tokenval, | |||
int | async | |||
) | [read] |
Wysyła hasło użytkownika na e-mail.
Wymaga wcześniejszego pobrania tokenu za pomocą gg_token()
.
uin | Numer Gadu-Gadu | |
Adres e-mail (podany przy rejestracji) | ||
tokenid | Identyfikator tokenu | |
tokenval | Zawartość tokenu | |
async | Flaga połączenia asynchronicznego |
gg_http
lub NULL
w przypadku błędu int gg_remind_watch_fd | ( | struct gg_httpd * | h | ) |
Funkcja wywoływana po zaobserwowaniu zmian na deskryptorze połączenia.
Operacja będzie zakończona, gdy pole state
będzie równe GG_STATE_DONE
. Jeśli wystąpi błąd, state
będzie równe GG_STATE_ERROR
, a kod błędu znajdzie się w polu error
.
gg_pubdir_watch_fd()
.h | Struktura połączenia |
void gg_remind_free | ( | struct gg_http * | h | ) |
Zwalnia zasoby po operacji.
gg_pubdir_free()
.h | Struktura połączenia |