Ejemplo n.º 1
0
        public IAsyncResult BeginReadStatus(AsyncCallback callback, object state)
        {
            CheckConnected();
            var buf     = new byte[4];
            var wrapper = new WrapperResult(callback, state, buf);

            wrapper.InnerResult = stream.BeginRead(buf, 0, 4, wrapper.WrapperCallback, wrapper);
            return(wrapper);
        }
Ejemplo n.º 2
0
		public IAsyncResult BeginReadStatus (AsyncCallback callback, object state)
		{
			CheckConnected ();
			var buf = new byte[4];
			var wrapper = new WrapperResult (callback, state, buf);
			wrapper.InnerResult = stream.BeginRead (buf, 0, 4, wrapper.WrapperCallback, wrapper);
			return wrapper;
		}