24 #import <Foundation/Foundation.h>
30 #pragma mark Class Constants
40 #define SCStreamDelegateClass @"SCStreamDelegate"
44 #pragma mark Protocol SCStreamDelegate Declaration
63 #pragma mark Handling Stream Errors
82 #pragma mark Data Reading Events Handlers
96 - (void)willReadObjectFromStream:(
SCStream *)stream;
110 - (void)stream:(
SCStream *)stream willReadBytes:(
SCSize)bytes toBuffer:(
void *)buffer;
136 - (void)stream:(
SCStream *)stream didFinishReadingBytes:(
SCSize)bytes toBuffer:(
void *)buffer;
139 #pragma mark Data Writing Events Handlers
169 - (void)stream:(
SCStream *)stream willWriteBytes:(
SCSize)bytes fromBuffer:(const
void *)buffer;
195 - (void)stream:(
SCStream *)stream didFinishWritingBytes:(
SCSize)bytes fromBuffer:(const
void *)buffer;
198 #pragma mark File Stream Opening and Closing Events Handlers
226 - (void)willCloseStream:(
SCStream *)stream;
243 successfully:(BOOL)successfully;
253 - (void)didFinishClosingStream:(
SCStream *)stream;
258 #pragma mark Class SCStreamDelegate Declaration
277 #pragma mark Handling Stream Errors
281 #pragma mark Data Reading Events Handlers
282 - (void)willReadObjectFromStream:(
SCStream *)stream;
283 - (void)stream:(
SCStream *)stream willReadBytes:(
SCSize)bytes toBuffer:(
void *)buffer;
285 - (void)stream:(
SCStream *)stream didFinishReadingBytes:(
SCSize)bytes toBuffer:(
void *)buffer;
288 #pragma mark Data Writing Events Handlers
290 - (void)stream:(
SCStream *)stream willWriteBytes:(
SCSize)bytes fromBuffer:(const
void *)buffer;
292 - (void)stream:(
SCStream *)stream didFinishWritingBytes:(
SCSize)bytes fromBuffer:(const
void *)buffer;
295 #pragma mark File Stream Opening and Closing Events Handlers
297 - (void)willCloseStream:(
SCStream *)stream;
299 successfully:(BOOL)successfully;
300 - (void)didFinishClosingStream:(
SCStream *)stream;
Class SCFileStream header file.
Class SCStream header file.
Streams events handling class.
Definition: SCStreamDelegate.h:274
Class SCDelegate header file.
SCFileStreamOpenMode
Definition: SCFileStream.h:97
Parent class of all library delegate classes.
Definition: SCDelegate.h:54
Streams communications protocol.
Definition: SCStreaming.h:43
SCInteger SCStreamStatus
Definition: SCStream.h:160
Streams delegate class.
Definition: SCStreamDelegate.h:59
Abstract parent class of the stream classes hierarchy.
Definition: SCStream.h:224
size_t SCSize
Definition: SCTypes.h:220