libzedmd
ZeDMDWiFi.h
1#pragma once
2
3#include "ZeDMDComm.h"
4
5#if defined(_WIN32) || defined(_WIN64)
6#include <winsock2.h>
7#else
8#include <arpa/inet.h>
9#include <netinet/in.h>
10#include <sys/socket.h>
11#endif
12
13#define ZEDMD_WIFI_ZONES_BYTES_LIMIT 1800
14
15class ZeDMDWiFi : public ZeDMDComm
16{
17 public:
18 ZeDMDWiFi() : ZeDMDComm() { m_zonesBytesLimit = ZEDMD_WIFI_ZONES_BYTES_LIMIT; }
19
20 virtual bool Connect(const char* ip, int port);
21 virtual void Disconnect();
22 virtual bool IsConnected();
23
24 protected:
25 virtual bool StreamBytes(ZeDMDFrame* pFrame);
26 virtual void Reset();
27
28 private:
29 int m_wifiSocket;
30 struct sockaddr_in m_wifiServer;
31 bool m_connected = false;
32};
Definition: ZeDMDComm.h:92
Definition: ZeDMDWiFi.h:16
Definition: ZeDMDComm.h:65