basic telnet like control server

This commit is contained in:
badaix 2015-08-27 23:20:10 +02:00
parent b4a23894f0
commit 046386f56d
14 changed files with 7887 additions and 119 deletions

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef SERVER_CONNECTION_H
#define SERVER_CONNECTION_H
#ifndef SERVER_SESSION_H
#define SERVER_SESSION_H
#include <string>
#include <thread>
@ -84,6 +84,13 @@ public:
bufferMs_ = bufferMs;
}
std::string macAddress;
std::string getIP()
{
return socket_->remote_endpoint().address().to_string();
}
protected:
void socketRead(void* _to, size_t _bytes);
void getNextMessage();