コード例 #1
0
 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;
 }
コード例 #2
0
 public void sendXML(string str)
 {
     packet pck = new packet(PACKET_TYPE.SC_SEND_XML);
     pck.writeString(str);
     send(pck);
 }
コード例 #3
0
 public void requestPicture(string name)
 {
     packet pck = new packet(PACKET_TYPE.C_GET_PICTURE);
     pck.writeString(name);
     send(pck);
 }