Ignore:
Timestamp:
Mar 4, 2011, 9:00:52 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) new function: tr_ssToAddr()

This handles converting the data in a sockaddr_storage to a tr_address + port, and removes redundant code from fdlimit.c and tr-udp.c that previously did this work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r11971 r12094  
    8080extern const tr_address tr_in6addr_any;
    8181
     82tr_bool tr_ssToAddr( tr_address * setme_addr,     
     83                     tr_port    * setme_port,     
     84                     const struct sockaddr_storage * from );
     85
    8286const char *tr_ntop( const tr_address * src,
    8387                     char * dst,
     
    129133void tr_netInit( void );
    130134
     135
    131136/**
    132137 * @brief get a human-representable string representing the network error.
Note: See TracChangeset for help on using the changeset viewer.