public TcpClient AcceptTcpClient()
        {
            //I/System.Console(28234): 6e4a:6af2 before AcceptTcpClient
            //I/System.Console(28234): 6e4a:6af2 enter AcceptTcpClient
            //I/System.Console(28234): 6e4a:6af1 enter catch { mname = <00c3> ldloca.s.try } ClauseCatchLocal:
            //I/System.Console(28234): 6e4a:6af1
            //I/System.Console(28234): __AsyncVoidMethodBuilder.SetException { exception =  }

            //Console.WriteLine("enter AcceptTcpClient");
            // tested by?

            var r = default(__TcpClient);

            try
            {
                var s = this.AcceptSocket();
                r = new __TcpClient(s);
            }
            catch (global::System.Exception err)
            {
                Console.WriteLine("err AcceptTcpClient " + new { err });
                //throw err;
                throw new InvalidOperationException();
            }

            //Console.WriteLine("exit AcceptTcpClient");
            return((TcpClient)(object)r);
        }
Esempio n. 2
0
        public TcpClient AcceptTcpClient()
        {
            // tested by?

            var s = AcceptSocket();
            var r = new __TcpClient(s);

            return((TcpClient)(object)r);
        }
        public TcpClient AcceptTcpClient()
        {
            //I/System.Console(28234): 6e4a:6af2 before AcceptTcpClient
            //I/System.Console(28234): 6e4a:6af2 enter AcceptTcpClient
            //I/System.Console(28234): 6e4a:6af1 enter catch { mname = <00c3> ldloca.s.try } ClauseCatchLocal:
            //I/System.Console(28234): 6e4a:6af1
            //I/System.Console(28234): __AsyncVoidMethodBuilder.SetException { exception =  }

            //Console.WriteLine("enter AcceptTcpClient");
            // tested by?

            var r = default(__TcpClient);

            try
            {
                var s = this.AcceptSocket();
                r = new __TcpClient(s);
            }
            catch (global::System.Exception err)
            {
                Console.WriteLine("err AcceptTcpClient " + new { err });
                //throw err;
                throw new InvalidOperationException();
            }

            //Console.WriteLine("exit AcceptTcpClient");
            return (TcpClient)(object)r;
        }