From 3a94849287f11a6d397222c151a2b47f6e598eb3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 5 Jan 2011 21:10:39 -0500 Subject: [PATCH] Removed some extra braces and add a comment for NetworkConnection(Private) --- Source/NetworkCallbackController.mm | 4 ---- Source/NetworkConnectionPrivate.h | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/NetworkCallbackController.mm b/Source/NetworkCallbackController.mm index 5ba1ac0..943c301 100644 --- a/Source/NetworkCallbackController.mm +++ b/Source/NetworkCallbackController.mm @@ -120,11 +120,9 @@ void NetworkCallbackController::OnReadStreamEvent(CFReadStreamRef stream, break; case kCFStreamEventErrorOccurred: - { ReportError(CFReadStreamCopyError(stream)); UnscheduleReadStream(); break; - } case kCFStreamEventEndEncountered: UnscheduleReadStream(); @@ -143,11 +141,9 @@ void NetworkCallbackController::OnWriteStreamEvent(CFWriteStreamRef stream, break; case kCFStreamEventErrorOccurred: - { ReportError(CFWriteStreamCopyError(stream)); UnscheduleWriteStream(); break; - } case kCFStreamEventEndEncountered: UnscheduleReadStream(); diff --git a/Source/NetworkConnectionPrivate.h b/Source/NetworkConnectionPrivate.h index 9ce998a..30b8630 100644 --- a/Source/NetworkConnectionPrivate.h +++ b/Source/NetworkConnectionPrivate.h @@ -16,6 +16,8 @@ @class LogEntry; +// This is the private interface for the NetworkConnection class. This is shared +// by the C++ NetworkCallbackController to communicate. @interface NetworkConnection () @property (assign) CFSocketRef socket; -- 2.43.5