Visioscan Set SDK Libraries 1.0.14
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
WEthernetCommunication.h
1#pragma once
2//#include "WBaseCommunication.h"
3#include "WEthernetSettings.h"
4
5namespace WCommunication {
6 public ref class WEthernetCommunication : public WBaseCommunication
7 {
8 public:
9 WEthernetCommunication() : WBaseCommunication() {
10 _communication = new EthernetCommunication(AUTO_RECONNECT);
11 }
12
14 delete(_communication);
15 }
16
17 WEthernetCommunication(WEthernetSettings^ pEthernetSettings) : WBaseCommunication() {
18 Settings = pEthernetSettings;
19 _communication = new EthernetCommunication((EthernetSettings*)pEthernetSettings->__nativeSettings, AUTO_RECONNECT);
20 }
21
22 void Connect() override {
23 _communication->Connect();
24 }
25
26 void Disconnect() override {
27 StopMonitoring();
28 _communication->Disconnect();
29 }
30
31 private:
32 };
33}
Definition WEthernetCommunication.h:5
An ETHERNET oriented communication class. It inherits from BaseCommunication. It ensures the ETHERNET...
Definition EthernetCommunication.h:38
The ETHERNET settings encapsulation for ETHERNET communication.
Definition EthernetSettings.h:21
Definition WEthernetCommunication.h:7
WEthernetCommunication(WEthernetSettings^ pEthernetSettings)
Definition WEthernetCommunication.h:17
void Connect() override
Definition WEthernetCommunication.h:22
WEthernetCommunication()
Definition WEthernetCommunication.h:9
~WEthernetCommunication()
Definition WEthernetCommunication.h:13
void Disconnect() override
Definition WEthernetCommunication.h:26
A wrapper on the EthernetSettings.
Definition WEthernetSettings.h:16