starting to add new Socket interface

This commit is contained in:
Erik Frojdh
2019-01-23 11:47:13 +01:00
parent 3eca4c0535
commit 99a1c609f1
10 changed files with 212 additions and 21 deletions

View File

@ -0,0 +1,23 @@
#pragma once
#include <cstdint>
#include <cstddef>
namespace sls {
class DataSocket {
public:
DataSocket(int socketId);
int getSocketId() const{
return socketId_;
}
size_t sendData(char *buffer, size_t size);
size_t receiveData(char * buffer, size_t size);
void close();
private:
int socketId_ = -1;
};
}; // namespace sls