public bool sendPicture(loadTexture data, string name)
 {
     if (!data.isTextureLoaded()) return false;
     byte[] rawPicData = data.getImageData();
     packet pck = new packet(PACKET_TYPE.SC_SEND_PICTURE);
     pck.writeString(name);
     pck.writeLong(rawPicData.Length);
     for (int i = 0; i < rawPicData.Length; i++)
         pck.writeByte(rawPicData[i]);
     send(pck);
     return true;
 }
 public void sendXML(string str)
 {
     packet pck = new packet(PACKET_TYPE.SC_SEND_XML);
     pck.writeString(str);
     send(pck);
 }
 public void requestPicture(string name)
 {
     packet pck = new packet(PACKET_TYPE.C_GET_PICTURE);
     pck.writeString(name);
     send(pck);
 }