diff --git a/Medicina/Libraries/MedicinaVertexLibrary/include/MedicinaVertex.h b/Medicina/Libraries/MedicinaVertexLibrary/include/MedicinaVertex.h new file mode 100644 index 0000000000000000000000000000000000000000..41a3ec9324dba4ddbe4292bad0d05bf1c2c9b64d --- /dev/null +++ b/Medicina/Libraries/MedicinaVertexLibrary/include/MedicinaVertex.h @@ -0,0 +1,33 @@ +#ifndef _MEDICINAVERTEXLIBRARY_H +#define _MEDICINAVERTEXLIBRARY_H + +/* ***************************************************************************************************** */ +/* IRA Istituto di Radioastronomia */ +/* */ +/* This code is under GNU General Public Licence (GPL). */ +/* */ +/* */ +/* Who when What */ +/* Andrea Orlati(aorlati@ira.inaf.it) 22/09/2021 Creation +*/ +#include + +class CMedicinaVertex { +public: + CMedicinaVertex(const IRA::CString& addr,const DWORD& port); + virtual ~CMedicinaVertex(); + inline IRA::CString getLastErrorMessage() const { return m_lastErrorMessage; } + + bool sendTo(const void *buffer,int size); + +protected: + IRA::CString m_vertexAddr; + DWORD m_vertexPort; + IRA::CString m_lastErrorMessage; + IRA::CSocket m_sock; + IRA::CError m_err; +}; + + + +#endif \ No newline at end of file