Ignore:
Timestamp:
Mar 24, 2006, 12:18:38 PM (16 years ago)
Author:
titer
Message:

Adds non-blocking (threaded) DNS resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r26 r164  
    11/******************************************************************************
    2  * Copyright (c) 2005 Eric Petit
     2 * Copyright (c) 2005-2006 Transmission authors and contributors
    33 *
    44 * Permission is hereby granted, free of charge, to any person obtaining a
     
    2121 *****************************************************************************/
    2222
     23#define TR_RESOLVE_WAIT  0
     24#define TR_RESOLVE_ERROR 1
     25#define TR_RESOLVE_OK    2
     26typedef struct tr_resolve_s tr_resolve_t;
     27tr_resolve_t * tr_netResolveInit( char * );
     28int            tr_netResolvePulse( tr_resolve_t *, struct in_addr * );
     29void           tr_netResolveClose( tr_resolve_t * );
     30
    2331int  tr_netResolve ( char *, struct in_addr * );
    2432int  tr_netOpen    ( struct in_addr addr, in_port_t port );
Note: See TracChangeset for help on using the changeset viewer.