* Remove XepXfer->rx_len, which is always 0.
* Rewrite Bonjour SOCKS5 communication using Gio.
The `bonjour_sock5_request_cb` function is confusing, incrementing `xf->sock5_req_state`, and then calling itself again to get to the next part of the switch. Using individual callback functions is required by Gio, but also hopefully clearer.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/215/
#ifndef PURPLE_ZEPHYR_INTERNAL_H
#define PURPLE_ZEPHYR_INTERNAL_H
#include<sysdep.h>
#ifdef LIBZEPHYR_EXT
#include<zephyr/zephyr.h>
#else
#include<zephyr_internal.h>
#endif
#ifndef WIN32
#include<netdb.h>
#endif
#ifdef WIN32
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 512
#endif
#define ETIMEDOUT WSAETIMEDOUT
#define EADDRINUSE WSAEADDRINUSE
#else /* !WIN32 */
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 4096
#endif
#endif
#ifdef ZEPHYR_USES_HESIOD
#include<hesiod.h>
#endif
#ifndef ZEPHYR_USES_KERBEROS
#define REALM_SZ MAXHOSTNAMELEN
#define INST_SZ 0 /* no instances w/o Kerberos */
#define ANAME_SZ 9 /* size of a username + null */
#define CLOCK_SKEW 300 /* max time to cache packet ids */