mirror of
				https://github.com/0xFEEDC0DE64/arduino-esp32.git
				synced 2025-10-31 14:11:42 +01:00 
			
		
		
		
	
		
			
	
	
		
			27 lines
		
	
	
		
			418 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			418 B
		
	
	
	
		
			C
		
	
	
	
	
	
|   | //
 | ||
|  | #ifndef __ESPNBNS_h__
 | ||
|  | #define __ESPNBNS_h__
 | ||
|  | 
 | ||
|  | #include <WiFi.h>
 | ||
|  | #include "AsyncUDP.h"
 | ||
|  | 
 | ||
|  | class NetBIOS | ||
|  | { | ||
|  | protected: | ||
|  |     AsyncUDP _udp; | ||
|  |     String _name; | ||
|  |     void _onPacket(AsyncUDPPacket& packet); | ||
|  | 
 | ||
|  | public: | ||
|  |     NetBIOS(); | ||
|  |     ~NetBIOS(); | ||
|  |     bool begin(const char *name); | ||
|  |     void end(); | ||
|  | }; | ||
|  | 
 | ||
|  | #if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_NETBIOS)
 | ||
|  | extern NetBIOS NBNS; | ||
|  | #endif
 | ||
|  | 
 | ||
|  | #endif
 |