mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	NetDb.h -> NetDb.hpp for case insensative file systems clashing with libc's netdb.h
This commit is contained in:
		
							parent
							
								
									2756f3332c
								
							
						
					
					
						commit
						e238f7ed37
					
				
					 27 changed files with 27 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
#include <shellapi.h>
 | 
			
		||||
#include "ClientContext.h"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -83,7 +83,7 @@
 | 
			
		|||
    <ClInclude Include="..\LittleBigEndian.h" />
 | 
			
		||||
    <ClInclude Include="..\Log.h" />
 | 
			
		||||
	<ClInclude Include="..\NetDbRequests.h" />
 | 
			
		||||
    <ClInclude Include="..\NetDb.h" />
 | 
			
		||||
    <ClInclude Include="..\NetDb.hpp" />
 | 
			
		||||
    <ClInclude Include="..\NTCPSession.h" />
 | 
			
		||||
    <ClInclude Include="..\Queue.h" />
 | 
			
		||||
	<ClInclude Include="..\Profiling.h" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -158,7 +158,7 @@
 | 
			
		|||
    <ClInclude Include="..\Log.h">
 | 
			
		||||
      <Filter>Header Files</Filter>
 | 
			
		||||
    </ClInclude>
 | 
			
		||||
    <ClInclude Include="..\NetDb.h">
 | 
			
		||||
    <ClInclude Include="..\NetDb.hpp">
 | 
			
		||||
      <Filter>Header Files</Filter>
 | 
			
		||||
    </ClInclude>
 | 
			
		||||
    <ClInclude Include="..\NTCPSession.h">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,7 @@
 | 
			
		|||
#include "RouterContext.h"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
#include "HTTP.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Garlic.h"
 | 
			
		||||
#include "Streaming.h"
 | 
			
		||||
#include "Destination.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,7 @@
 | 
			
		|||
#include "Tunnel.h"
 | 
			
		||||
#include "TransitTunnel.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "HTTP.h"
 | 
			
		||||
#include "LeaseSet.h"
 | 
			
		||||
#include "Destination.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
#include "FS.h"
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "Daemon.h"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,7 @@
 | 
			
		|||
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "UPnP.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
#include "RouterInfo.h"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
#include "Log.h"
 | 
			
		||||
#include "FS.h"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Destination.h"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
#include "Crypto.h"
 | 
			
		||||
#include "LeaseSet.h"
 | 
			
		||||
#include "Garlic.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Streaming.h"
 | 
			
		||||
#include "Datagram.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
#include "I2PEndian.h"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "Garlic.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
#include "Crypto.h"
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
#include "LeaseSet.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,7 @@
 | 
			
		|||
#include "I2NPProtocol.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "NTCPSession.h"
 | 
			
		||||
#ifdef WITH_EVENTS
 | 
			
		||||
#include "Event.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,7 @@
 | 
			
		|||
#include "Transports.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "Garlic.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
 | 
			
		||||
using namespace i2p::transport;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#ifndef NETDB_H__
 | 
			
		||||
#define NETDB_H__
 | 
			
		||||
 | 
			
		||||
// this file is called NetDb.hpp to resolve conflict with libc's netdb.h on case insensitive fs
 | 
			
		||||
#include <inttypes.h>
 | 
			
		||||
#include <set>
 | 
			
		||||
#include <map>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#include "Log.h"
 | 
			
		||||
#include "I2NPProtocol.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "NetDbRequests.h"
 | 
			
		||||
 | 
			
		||||
namespace i2p
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,7 @@
 | 
			
		|||
#include "FS.h"
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "Identity.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "HTTP.h"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
#include "Crypto.h"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "I2NPProtocol.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "FS.h"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
#include "version.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,7 +12,7 @@
 | 
			
		|||
#include "Base.h"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "RouterInfo.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
#include "Log.h"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "SSU.h"
 | 
			
		||||
 | 
			
		||||
namespace i2p
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
#include <boost/bind.hpp>
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "SSU.h"
 | 
			
		||||
#include "SSUData.h"
 | 
			
		||||
#ifdef WITH_EVENTS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
#include "Timestamp.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "SSU.h"
 | 
			
		||||
#include "SSUSession.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
#include "Crypto.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
#include "I2NPProtocol.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
#ifdef WITH_EVENTS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
#include "Timestamp.h"
 | 
			
		||||
#include "I2NPProtocol.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
#include "TunnelPool.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
#include <string.h>
 | 
			
		||||
#include "Crypto.h"
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "I2NPProtocol.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
#include "I2PEndian.h"
 | 
			
		||||
#include "Crypto.h"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Timestamp.h"
 | 
			
		||||
#include "Garlic.h"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
#include <map>
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "Transports.h"
 | 
			
		||||
#include "Tunnel.h"
 | 
			
		||||
#include "RouterContext.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,7 @@
 | 
			
		|||
#include "FS.h"
 | 
			
		||||
#include "Log.h"
 | 
			
		||||
#include "HTTP.h"
 | 
			
		||||
#include "NetDb.h"
 | 
			
		||||
#include "NetDb.hpp"
 | 
			
		||||
#include "ClientContext.h"
 | 
			
		||||
#include "AddressBook.h"
 | 
			
		||||
#include "Config.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue