StartReadFrame() private method

private StartReadFrame ( byte buffer, int readBytes, AsyncProtocolRequest asyncRequest ) : void
buffer byte
readBytes int
asyncRequest AsyncProtocolRequest
return void
示例#1
0
        private static void PartialFrameCallback(AsyncProtocolRequest asyncRequest)
        {
            SslState asyncObject = (SslState)asyncRequest.AsyncObject;

            try
            {
                asyncObject.StartReadFrame(asyncRequest.Buffer, asyncRequest.Result, asyncRequest);
            }
            catch (Exception exception)
            {
                if (asyncRequest.IsUserCompleted)
                {
                    throw;
                }
                asyncObject.FinishHandshake(exception, asyncRequest);
            }
        }