mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-01 19:31:27 -05:00
22 lines
300 B
C
22 lines
300 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include "util/rsthreads.h"
|
||
|
|
||
|
struct sockaddr ;
|
||
|
|
||
|
class ExtAddrFinder
|
||
|
{
|
||
|
public:
|
||
|
ExtAddrFinder() ;
|
||
|
~ExtAddrFinder() ;
|
||
|
|
||
|
bool hasValidIP(struct sockaddr_in *addr) ;
|
||
|
|
||
|
void start_request() ;
|
||
|
|
||
|
RsMutex _addrMtx ;
|
||
|
struct sockaddr_in *_addr ;
|
||
|
bool *_found ;
|
||
|
bool *_searching ;
|
||
|
};
|