Changeset 257 in Main for trunk/Server/server.c
- Timestamp:
- Oct 4, 2024, 2:34:27 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r255 r257 498 498 struct sockaddr* sa = (struct sockaddr*)&addr; 499 499 getnameinfo(sa, sizeof(addr), address, 512, NULL, 0, NI_NUMERICHOST); 500 #endif 501 addrstr = inet_ntoa(addr.sin_addr); 502 strcpy(address, addrstr); 503 address[strlen(addrstr)] = 0; 500 #else 501 addrstr = inet_ntoa(addr.sin_addr); 502 strcpy(address, addrstr); 503 address[strlen(addrstr)] = 0; 504 #endif 504 505 #ifdef FREE_PTR 505 506 free(ptr);
Note:
See TracChangeset
for help on using the changeset viewer.