[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] ..on SOCKS5 support
From: |
Thorsten Glaser |
Subject: |
Re: [Lynx-dev] ..on SOCKS5 support |
Date: |
Mon, 16 Sep 2019 01:16:48 +0000 (UTC) |
Thomas Dickey dixit:
>well... I'll have to set up something for testing
ssh -D starts a SOCKS5 server on the SSH client side AIUI.
>but here's something more like the style of lynx
Please…
- /* C99 */ {
- unsigned short x; /* XXX 16-bit? */
-
- x = htons(socks5_port);
- memcpy(&pbuf[i], (unsigned char *) &x, sizeof x);
- i += (unsigned) sizeof(x);
- }
+ pbuf[i++] = (((unsigned)socks5_port) >> 8) & 0xFF;
+ pbuf[i++] = ((unsigned)socks5_port) & 0xFF;
(or just make socks5_port unsigned int, if you can)
This should even be optimisable by compilers.
bye,
//mirabilos
--
16:06⎜<Draget:#cvs> Thank god I found you =) 20:03│«bioe007:#cvs» mira2k: ty
17:14⎜<ldiain:#cvs> Thanks big help you are :-) <bioe007> mira|nwt: ty again
18:36⎜«ThunderChicken:#cvs» mirabilos FTW! 23:03⎜«mithraic:#cvs» aaah. thanks
21:34⎜<centosian:#cvs> mirabilos: whoa that's sweet
- Re: [Lynx-dev] ..on SOCKS5 support, (continued)
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/07
- Re: [Lynx-dev] ..on SOCKS5 support, Thomas Dickey, 2019/09/07
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/07
- Re: [Lynx-dev] ..on SOCKS5 support, Thomas Dickey, 2019/09/08
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/09
- Re: [Lynx-dev] ..on SOCKS5 support, Thomas Dickey, 2019/09/10
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/11
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/14
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/14
- Re: [Lynx-dev] ..on SOCKS5 support, Thomas Dickey, 2019/09/15
- Re: [Lynx-dev] ..on SOCKS5 support,
Thorsten Glaser <=
- Re: [Lynx-dev] ..on SOCKS5 support, Mouse, 2019/09/15
- Re: [Lynx-dev] ..on SOCKS5 support, Thorsten Glaser, 2019/09/15
- Re: [Lynx-dev] ..on SOCKS5 support, Mouse, 2019/09/16
- Re: [Lynx-dev] ..on SOCKS5 support, Thomas Dickey, 2019/09/16
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/16
- Re: [Lynx-dev] ..on SOCKS5 support, Mouse, 2019/09/16
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/16
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/16
- Re: [Lynx-dev] ..on SOCKS5 support, Steffen Nurpmeso, 2019/09/16
Re: [Lynx-dev] ..on SOCKS5 support, Thorsten Glaser, 2019/09/07