コード例 #1
0
ファイル: test.cs プロジェクト: demonxjj/TCE
        public void heartbeat_async(string hello, Server_AsyncCallBack async, Dictionary <string, string> props, object cookie)
        {
            bool       r_5 = false;
            RpcMessage m_6 = new RpcMessage(RpcMessage.CALL | RpcMessage.ASYNC);

            m_6.ifidx     = 2;
            m_6.opidx     = 2;
            m_6.paramsize = 1;
            m_6.extra.setProperties(props);
            m_6.cookie = cookie;
            try{
                MemoryStream bos_7 = new MemoryStream();
                BinaryWriter dos_8 = new BinaryWriter(bos_7);
                RpcBinarySerializer.writeString(hello, dos_8);
                m_6.paramstream = bos_7.ToArray();
                m_6.prx         = this;
                m_6.async       = async;
            }catch (Exception e) {
                throw new RpcException(RpcException.RPCERROR_DATADIRTY, e.ToString());
            }
            r_5 = this.conn.sendMessage(m_6);
            if (!r_5)
            {
                throw new RpcException(RpcException.RPCERROR_SENDFAILED);
            }
        }
コード例 #2
0
ファイル: test.cs プロジェクト: demonxjj/TCE
        public void echo_async(string text, Server_AsyncCallBack async, Dictionary <string, string> props, object cookie)
        {
            bool       r_10 = false;
            RpcMessage m_11 = new RpcMessage(RpcMessage.CALL | RpcMessage.ASYNC);

            m_11.ifidx     = 2;
            m_11.opidx     = 0;
            m_11.paramsize = 1;
            m_11.extra.setProperties(props);
            m_11.cookie = cookie;
            try{
                MemoryStream bos_12 = new MemoryStream();
                BinaryWriter dos_13 = new BinaryWriter(bos_12);
                RpcBinarySerializer.writeString(text, dos_13);
                m_11.paramstream = bos_12.ToArray();
                m_11.prx         = this;
                m_11.async       = async;
            }catch (Exception e) {
                throw new RpcException(RpcException.RPCERROR_DATADIRTY, e.ToString());
            }
            r_10 = this.conn.sendMessage(m_11);
            if (!r_10)
            {
                throw new RpcException(RpcException.RPCERROR_SENDFAILED);
            }
        }
コード例 #3
0
ファイル: test.cs プロジェクト: demonxjj/TCE
        public void bidirection_async(Server_AsyncCallBack async, Dictionary <string, string> props, object cookie)
        {
            bool       r_3 = false;
            RpcMessage m_4 = new RpcMessage(RpcMessage.CALL | RpcMessage.ASYNC);

            m_4.ifidx     = 2;
            m_4.opidx     = 3;
            m_4.paramsize = 0;
            m_4.extra.setProperties(props);
            m_4.cookie = cookie;
            try{
                m_4.prx   = this;
                m_4.async = async;
            }catch (Exception e) {
                throw new RpcException(RpcException.RPCERROR_DATADIRTY, e.ToString());
            }
            r_3 = this.conn.sendMessage(m_4);
            if (!r_3)
            {
                throw new RpcException(RpcException.RPCERROR_SENDFAILED);
            }
        }
コード例 #4
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void bidirection_async(Server_AsyncCallBack async)
 {
     bidirection_async(async, null, null);
 }
コード例 #5
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void bidirection_async(Server_AsyncCallBack async, Dictionary <string, string> props)
 {
     bidirection_async(async, props, null);
 }
コード例 #6
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void heartbeat_async(string hello, Server_AsyncCallBack async)
 {
     heartbeat_async(hello, async, null, null);
 }
コード例 #7
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void heartbeat_async(string hello, Server_AsyncCallBack async, Dictionary <string, string> props)
 {
     heartbeat_async(hello, async, props, null);
 }
コード例 #8
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void timeout_async(int secs, Server_AsyncCallBack async)
 {
     timeout_async(secs, async, null, null);
 }
コード例 #9
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void timeout_async(int secs, Server_AsyncCallBack async, Dictionary <string, string> props)
 {
     timeout_async(secs, async, props, null);
 }
コード例 #10
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void echo_async(string text, Server_AsyncCallBack async)
 {
     echo_async(text, async, null, null);
 }
コード例 #11
0
ファイル: test.cs プロジェクト: demonxjj/TCE
 public void echo_async(string text, Server_AsyncCallBack async, Dictionary <string, string> props)
 {
     echo_async(text, async, props, null);
 }