This commit is contained in:
Martín Lucas Golini
2024-12-15 20:56:41 -03:00
parent 6e458c8297
commit d2dabdf92c
7 changed files with 132 additions and 11 deletions

View File

@@ -3,8 +3,11 @@
namespace ecode {
BusSocket::BusSocket( const Connection& connection ) {
mSocket.connect( IpAddress( connection.host ), connection.port );
BusSocket::BusSocket( const Connection& connection ) : mConnection( connection ) {}
bool BusSocket::start() {
return mSocket.connect( IpAddress( mConnection.host ), mConnection.port ) ==
Socket::Status::Done;
}
void BusSocket::startAsyncRead( ReadFn readFn ) {