Subversion Repositories Tewi

Rev

Rev 255 | Rev 272 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 255 Rev 257
Line 1... Line 1...
1
/* $Id: server.c 255 2024-10-04 04:08:58Z nishi $ */
1
/* $Id: server.c 257 2024-10-04 05:34:27Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 495... Line 495...
495
	struct tw_tool tools;
495
	struct tw_tool tools;
496
	char* addrstr;
496
	char* addrstr;
497
#ifndef NO_GETNAMEINFO
497
#ifndef NO_GETNAMEINFO
498
	struct sockaddr* sa = (struct sockaddr*)&addr;
498
	struct sockaddr* sa = (struct sockaddr*)&addr;
499
	getnameinfo(sa, sizeof(addr), address, 512, NULL, 0, NI_NUMERICHOST);
499
	getnameinfo(sa, sizeof(addr), address, 512, NULL, 0, NI_NUMERICHOST);
-
 
500
#else
-
 
501
		addrstr = inet_ntoa(addr.sin_addr);
-
 
502
		strcpy(address, addrstr);
-
 
503
		address[strlen(addrstr)] = 0;
500
#endif
504
#endif
501
	addrstr = inet_ntoa(addr.sin_addr);
-
 
502
	strcpy(address, addrstr);
-
 
503
	address[strlen(addrstr)] = 0;
-
 
504
#ifdef FREE_PTR
505
#ifdef FREE_PTR
505
	free(ptr);
506
	free(ptr);
506
#endif
507
#endif
507
 
508
 
508
	res._processed = false;
509
	res._processed = false;