Re: [Openvpn-devel] [PATCH] Improve format specifier for socket handle in Windows

2023-02-14 Thread Arne Schwabe
Am 10.02.23 um 23:07 schrieb Antonio Quartulli: Hi, On 10/02/2023 20:54, Selva Nair wrote:     I also discussed this with Lev and, despite this being different from     what we do in the *nix world (where decimal representations make sense     for file descriptors), it seems to be the right h

Re: [Openvpn-devel] [PATCH] Improve format specifier for socket handle in Windows

2023-02-10 Thread Antonio Quartulli
Hi, On 10/02/2023 20:54, Selva Nair wrote: I also discussed this with Lev and, despite this being different from what we do in the *nix world (where decimal representations make sense for file descriptors), it seems to be the right hting to do on Windows when using HANDLEs (shru

Re: [Openvpn-devel] [PATCH] Improve format specifier for socket handle in Windows

2023-02-10 Thread Selva Nair
Hi On Fri, Feb 10, 2023 at 2:21 PM Antonio Quartulli wrote: > Hi, > > On 10/02/2023 14:31, Lev Stipakov wrote: > > From: Lev Stipakov > > > > Socket is a handle on Windows, which is usually logged in hex. > > Also an interesting value is INVALID_SOCKET, which is ~0. > > > > PRIuPTR prints decim

Re: [Openvpn-devel] [PATCH] Improve format specifier for socket handle in Windows

2023-02-10 Thread Antonio Quartulli
Hi, On 10/02/2023 14:31, Lev Stipakov wrote: From: Lev Stipakov Socket is a handle on Windows, which is usually logged in hex. Also an interesting value is INVALID_SOCKET, which is ~0. PRIuPTR prints decimals, and for INVALID_SOCKET it prints something like 2023-02-10 14:45:21 us=906000 w

Re: [Openvpn-devel] [PATCH] Improve format specifier for socket handle in Windows

2023-02-10 Thread Frank Lichtenheld
On Fri, Feb 10, 2023 at 03:31:59PM +0200, Lev Stipakov wrote: > From: Lev Stipakov > > Socket is a handle on Windows, which is usually logged in hex. > Also an interesting value is INVALID_SOCKET, which is ~0. > > PRIuPTR prints decimals, and for INVALID_SOCKET it prints something like > > 20

[Openvpn-devel] [PATCH] Improve format specifier for socket handle in Windows

2023-02-10 Thread Lev Stipakov
From: Lev Stipakov Socket is a handle on Windows, which is usually logged in hex. Also an interesting value is INVALID_SOCKET, which is ~0. PRIuPTR prints decimals, and for INVALID_SOCKET it prints something like 2023-02-10 14:45:21 us=906000 write to TUN/TAP : Jrjestelmkutsulle annettu data-