Ignore:
Timestamp:
Jan 21, 2007, 7:42:11 PM (15 years ago)
Author:
titer
Message:

More simplifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r920 r1425  
    3838
    3939/***********************************************************************
    40  * TCP sockets
     40 * TCP and UDP sockets
    4141 **********************************************************************/
    42 #define tr_netOpenTCP( addr, port ) tr_netOpen( (addr), (port), SOCK_STREAM )
    43 #define tr_netOpenUDP( addr, port ) tr_netOpen( (addr), (port), SOCK_DGRAM )
    44 int  tr_netOpen    ( struct in_addr addr, in_port_t port, int type );
     42#define tr_netOpenTCP( addr, port, priority ) \
     43    tr_netOpen( (addr), (port), SOCK_STREAM, (priority) )
     44#define tr_netOpenUDP( addr, port, priority ) \
     45    tr_netOpen( (addr), (port), SOCK_DGRAM, (priority) )
     46int  tr_netOpen    ( struct in_addr addr, in_port_t port, int type,
     47                     int priority );
    4548int  tr_netMcastOpen( int port, struct in_addr addr );
    4649#define tr_netBindTCP( port ) tr_netBind( (port), SOCK_STREAM )
Note: See TracChangeset for help on using the changeset viewer.