本项止转自github官方arduino-esp32 传在这里仅为阅读源码方便
projectuser
2019-07-05 50148ccffe21ff54262064ec9f2245900eaf18aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
#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