HostMsg * HostMsg::clone() const { HostMsg * hostMsg = new HostMsg(); hostMsg->setHostAddress(this->hostAddress); hostMsg->setData(this->data.first, this->data.second); return hostMsg; }