Named locked pattern and some small things for beacon emitter and handler

This commit is contained in:
Gasper Jansa
2011-01-04 18:43:20 +01:00
parent a2798bb3b7
commit 547a648e76
8 changed files with 98 additions and 14 deletions
+4 -4
View File
@@ -69,7 +69,7 @@ bool BeaconHandler::updateBeacon(int8 remoteTransportRevision, int64 timestamp,
void BeaconHandler::beaconArrivalNotify()
{
int32 size;
int32 size = 0;
//TODO TCP name must be get from somewhere not hardcoded
//TODO
Transport** transports = NULL;//_context->getTransportRegistry().get("TCP", _responseFrom, size);
@@ -83,12 +83,12 @@ void BeaconHandler::beaconArrivalNotify()
{
transports[i]->aliveNotification();
}
delete transports;
delete[] transports;
}
void BeaconHandler::changedTransport()
{
int32 size;
int32 size = 0;
//TODO TCP name must be get from somewhere not hardcoded
//TODO
Transport** transports = NULL;//_context->getTransportRegistry().get("TCP", _responseFrom, size);
@@ -102,7 +102,7 @@ void BeaconHandler::changedTransport()
{
transports[i]->changedTransport();
}
delete transports;
delete[] transports;
}
}}