Ignore:
Timestamp:
Mar 13, 2011, 8:15:40 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) use libevent2's portability wrappers for inet_ntop() and inet_pton().

We currently implement our own versions of these on mingw because that platform doesn't have them... but why reinvent the wheel; libevent has already done the same thing. Let's use libevent2's implementation.
has already done it for us.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r12096 r12147  
    146146#include <ws2tcpip.h>           /* socklen_t */
    147147
    148 /** @brief Missing in Windows and Mingw */
    149 const char *inet_ntop( int af, const void *src, char *dst, socklen_t cnt );
    150 int inet_pton(int af, const char *src, void *dst);
    151148#endif
    152149
Note: See TracChangeset for help on using the changeset viewer.