* 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/
/* This file is part of the Project Athena Zephyr Notification System.
* It contains source for the ZParseNotice function.
*
* Created by: Robert French
*
* Copyright (c) 1987,1991 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file
* "mit-copyright.h".
*/
#include"internal.h"
/* Assume that strlen is efficient on this machine... */
#define next_field(ptr) ptr += strlen (ptr) + 1
#if defined (__GNUC__) && defined (__vax__)
#undef next_field
static__inline__char*Istrend(char*str){
/*
* This should be faster on VAX models outside the 2 series. Don't
* use it if you are using MicroVAX 2 servers. If you are using a
* VS2 server, use something like
* #define next_field(ptr) while(*ptr++)
* instead of this code.
*
* This requires use of GCC to get the optimized code, but
* everybody uses GCC, don't they? :-)
*/
registerchar*str2asm("r1");
/* Assumes that no field is longer than 64K.... */