StartReadFrame() private méthode

private StartReadFrame ( byte buffer, int readBytes, AsyncProtocolRequest asyncRequest ) : void
buffer byte
readBytes int
asyncRequest AsyncProtocolRequest
Résultat void
Exemple #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);
            }
        }