mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-15 15:32:51 +03:00
29 lines
488 B
C++
29 lines
488 B
C++
#include "bus.hpp"
|
|
#include "config.hpp"
|
|
#include <eepp/network/tcpsocket.hpp>
|
|
|
|
using namespace EE::Network;
|
|
|
|
namespace ecode {
|
|
|
|
class BusSocket : public Bus {
|
|
public:
|
|
BusSocket( const Connection& connection );
|
|
|
|
virtual ~BusSocket();
|
|
|
|
bool start() override;
|
|
|
|
bool close() override;
|
|
|
|
void startAsyncRead( ReadFn readFn ) override;
|
|
|
|
size_t write( const char* buffer, const size_t& size ) override;
|
|
|
|
protected:
|
|
Connection mConnection;
|
|
TcpSocket mSocket;
|
|
};
|
|
|
|
} // namespace ecode
|