QTfrontend/hwmap.cpp
changeset 180 ea83b9e9057f
parent 177 c67c15e6fae3
child 184 f97a7a3dc8f6
equal deleted inserted replaced
179:06e472d3f9f8 180:ea83b9e9057f
    31  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    32  */
    32  */
    33 
    33 
    34 #include "hwmap.h"
    34 #include "hwmap.h"
    35 
    35 
    36 HWMap::HWMap()
    36 HWMap::HWMap() :
       
    37   TCPBase(false)
    37 {
    38 {
    38 }
    39 }
    39 
    40 
    40 HWMap::~HWMap()
    41 HWMap::~HWMap()
    41 {
    42 {
    63 }
    64 }
    64 
    65 
    65 void HWMap::SendToClientFirst()
    66 void HWMap::SendToClientFirst()
    66 {
    67 {
    67   std::string toSend=std::string("eseed ")+m_seed;
    68   std::string toSend=std::string("eseed ")+m_seed;
    68   char ln=(char)toSend.length();
    69   SendIPC(toSend.c_str());
    69   IPCSocket->write(&ln, 1);
    70   SendIPC("!");
    70   IPCSocket->write(toSend.c_str(), ln);
       
    71 
       
    72   IPCSocket->write("\x01!", 2);
       
    73 }
    71 }