memcpy(f->frame, data.c_str(), data.size());
int res = msgsnd(que_id, f, mtu + sizeof(size_t), 0);
#ifdef DEBUG
- std::cout << "Dev::transmit(msgtype/mac = " << f->mac << ", size = "
- << f->size << ")\n";
+ //std::cout << "Dev::transmit(msgtype/mac = " << f->mac << ", size = "
+ // << f->size << ")\n";
#endif
free(f);
if (res == -1)
std::string s((char*) f->frame, f->size);
free(f);
#ifdef DEBUG
- std::cout << "Dev::receive(msgtype/mac = " << mac << ", size = "
- << s.size() << ")\n";
+ //std::cout << "Dev::receive(msgtype/mac = " << mac << ", size = "
+ // << s.size() << ")\n";
#endif
return s;
}