mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-02-11 07:03:07 +01:00
make birectional channels the default, clean up some channel handling
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include "GwBuffer.h"
|
||||
#include "GwSocketConnection.h"
|
||||
#include "GwSocketHelper.h"
|
||||
#include "GwHardware.h"
|
||||
|
||||
GwSocketServer::GwSocketServer(const GwConfigHandler *config, GwLog *logger, int minId)
|
||||
{
|
||||
@@ -187,5 +186,3 @@ int GwSocketServer::numClients()
|
||||
GwSocketServer::~GwSocketServer()
|
||||
{
|
||||
}
|
||||
|
||||
int GwSocketServer::getType() {return GWSERIAL_TYPE_BI;}
|
||||
@@ -27,6 +27,5 @@ class GwSocketServer: public GwChannelInterface{
|
||||
virtual size_t sendToClients(const char *buf,int sourceId, bool partialWrite=false);
|
||||
int numClients();
|
||||
virtual void readMessages(GwMessageFetcher *writer);
|
||||
virtual int getType() override;
|
||||
};
|
||||
#endif
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <functional>
|
||||
#include <ESPmDNS.h>
|
||||
#include "GwSocketHelper.h"
|
||||
#include "GwHardware.h"
|
||||
|
||||
class ResolveArgs{
|
||||
public:
|
||||
@@ -293,5 +292,3 @@ GwTcpClient::ResolvedAddress GwTcpClient::getResolved(){
|
||||
GWSYNCHRONIZED(locker);
|
||||
return resolvedAddress;
|
||||
}
|
||||
|
||||
int GwTcpClient::getType(){return GWSERIAL_TYPE_BI;}
|
||||
@@ -53,5 +53,4 @@ public:
|
||||
virtual void readMessages(GwMessageFetcher *writer);
|
||||
bool isConnected();
|
||||
String getError(){return error;}
|
||||
virtual int getType() override;
|
||||
};
|
||||
@@ -5,8 +5,6 @@
|
||||
#include "GwSocketConnection.h"
|
||||
#include "GwSocketHelper.h"
|
||||
#include "GWWifi.h"
|
||||
#include "GwHardware.h"
|
||||
|
||||
|
||||
GwUdpReader::GwUdpReader(const GwConfigHandler *config, GwLog *logger, int minId)
|
||||
{
|
||||
@@ -165,5 +163,4 @@ size_t GwUdpReader::sendToClients(const char *buf, int source,bool partial)
|
||||
|
||||
GwUdpReader::~GwUdpReader()
|
||||
{
|
||||
}
|
||||
int GwUdpReader::getType(){return GWSERIAL_TYPE_BI;}
|
||||
}
|
||||
@@ -41,6 +41,5 @@ class GwUdpReader: public GwChannelInterface{
|
||||
virtual void loop(bool handleRead=true,bool handleWrite=true);
|
||||
virtual size_t sendToClients(const char *buf,int sourceId, bool partialWrite=false);
|
||||
virtual void readMessages(GwMessageFetcher *writer);
|
||||
virtual int getType() override;
|
||||
};
|
||||
#endif
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "GwSocketConnection.h"
|
||||
#include "GwSocketHelper.h"
|
||||
#include "GWWifi.h"
|
||||
#include "GwHardware.h"
|
||||
|
||||
GwUdpWriter::WriterSocket::WriterSocket(GwLog *l,int p,const String &src,const String &dst, SourceMode sm) :
|
||||
sourceMode(sm), source(src), destination(dst), port(p),logger(l)
|
||||
@@ -202,5 +201,3 @@ size_t GwUdpWriter::sendToClients(const char *buf, int source,bool partial)
|
||||
GwUdpWriter::~GwUdpWriter()
|
||||
{
|
||||
}
|
||||
|
||||
int GwUdpWriter::getType() {return GWSERIAL_TYPE_BI;}
|
||||
@@ -69,6 +69,5 @@ class GwUdpWriter: public GwChannelInterface{
|
||||
virtual void loop(bool handleRead=true,bool handleWrite=true);
|
||||
virtual size_t sendToClients(const char *buf,int sourceId, bool partialWrite=false);
|
||||
virtual void readMessages(GwMessageFetcher *writer);
|
||||
virtual int getType() override;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user