Sketching debugger protocol.

This commit is contained in:
Martín Lucas Golini
2024-12-02 01:02:14 -03:00
parent 83741283e0
commit 5ed72776d8
14 changed files with 1204 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include "bussocket.hpp"
#include <eepp/network/ipaddress.hpp>
namespace ecode {
BusSocket::BusSocket( const Connection& connection ) {
mSocket.connect( IpAddress( connection.host ), connection.port );
}
void BusSocket::startAsyncRead( ReadFn readFn ) {
mSocket.startAsyncRead( readFn );
}
size_t BusSocket::write( const char* buffer, const size_t& size ) {
size_t sent = 0;
mSocket.send( buffer, size, sent );
return sent;
}
} // namespace ecode