Re: [libmicrohttpd] Can't log client address

2022-08-25 Thread Evgeny Grin
Hi Klemens, Which MHD example has direct print of the "sa_data"? 'struct sockaddr' has the only accessible member, it is sa_family. You should check sa_family value to detect which protocol is used. Then, if it is IPv4, you must cast the pointer to 'struct sockaddr_in*' and operate members of

Re: [libmicrohttpd] Can't log client address

2022-08-24 Thread silvioprog
Can you try this function ? On Wed, Aug 24, 2022 at 12:29 PM klemens wrote: > try to log an incoming clients address, as suggested in > example 2 of the tutorial: > > get_client_adr (void *cls, const struct sockaddr *addr, sock