//TODO: at the moment only one packet (in the front) gets deleted if buffer is full. However, the whole message (instruction+value) should be deleted in case of a full buffer
if(lOutputMsgBufferUp.size()==maxBufferLength){
del_msgAtBegin(&lOutputMsgBufferUp);
}
returnadd_msgAtEnd(&lOutputMsgBufferUp,message);
}
else{
if(lInputMsgBufferUp.size()==maxBufferLength){
//TODO: at the moment only one packet (in the front) gets deleted if buffer is full. However, the whole message (instruction+value) should be deleted in case of a full buffer