示例#1
0
 public int sendData(CellWriteStream ws)
 {
     if (_ccpClientObj == IntPtr.Zero)
     {
         return(0);
     }
     return(CellClient_SendStream(_ccpClientObj, ws.cppObj));
 }
示例#2
0
    // Update is called once per frame
    void Update()
    {
        this.onRun();
        CellWriteStream s = new CellWriteStream(256);

        s.setNetCmd(NetCMD.CMD_LOGOUT);
        s.writeInt8(1);
        s.writeInt16(2);
        s.writeInt32(3);
        s.writeFloat(4.5f);
        s.writeDouble(6.7);
        s.writeString("client");
        s.writeString("kzj");
        int[] b = { 1, 2, 3, 4, 5, 6 };
        s.writeInt32s(b);
        s.finish();
        this.sendData(s);
    }
示例#3
0
    // Update is called once per frame
    void Update()
    {
        this.OnRun();
        CellWriteStream s = new CellWriteStream(256);

        // CellSendStream s = new CellSendStream(256);
        s.setNetCmd(NetCMD.LOGOUT);
        s.WriteInt8(1);
        s.WriteInt16(2);
        s.WriteInt32(3);
        s.WriteFloat(4.5f);
        s.WriteDouble(6.7);
        s.WriteString("引擎 client...");
        s.WriteString("hello 引擎...");
        int[] b = { 1, 2, 3, 4, 5 };
        s.WriteInt32s(b);
        s.finsh();
        this.SendData(s);
        s.Release();
    }