Conforms to NSObject
Declared in DTBonjourDataConnection.h

Overview

Protocol to inform delegate of a DTBonjourDataConnection about what is happening

Instance Methods

connection:didFinishReceivingChunk:

Called after the connection did finish receiving a data chunk

- (void)connection:(DTBonjourDataConnection *)connection didFinishReceivingChunk:(DTBonjourDataChunk *)chunk

Parameters

connection

The connection

chunk

The chunk

Declared In

DTBonjourDataConnection.h

connection:didFinishSendingChunk:

Called after the connection did finish sending a data chunk

- (void)connection:(DTBonjourDataConnection *)connection didFinishSendingChunk:(DTBonjourDataChunk *)chunk

Parameters

connection

The connection

chunk

The chunk

Declared In

DTBonjourDataConnection.h

connection:didReceiveBytes:ofChunk:

Called multiple times while the the connection is receiving a data chunk

- (void)connection:(DTBonjourDataConnection *)connection didReceiveBytes:(NSUInteger)bytesReceived ofChunk:(DTBonjourDataChunk *)chunk

Parameters

connection

The connection

bytesReceived

The number of bytes received so far

chunk

The chunk

Declared In

DTBonjourDataConnection.h

connection:didReceiveObject:

Called when the connection did received and decode an object

- (void)connection:(DTBonjourDataConnection *)connection didReceiveObject:(id)object

Parameters

connection

The connection

object

The decoded object that was received

Declared In

DTBonjourDataConnection.h

connection:didSendBytes:ofChunk:

Called multiple times while the the connection is sending a data chunk

- (void)connection:(DTBonjourDataConnection *)connection didSendBytes:(NSUInteger)bytesSent ofChunk:(DTBonjourDataChunk *)chunk

Parameters

connection

The connection

bytesSent

The number of bytes sent so far

chunk

The chunk

Declared In

DTBonjourDataConnection.h

connection:willStartReceivingChunk:

Called before the connection will start receiving a data chunk

- (void)connection:(DTBonjourDataConnection *)connection willStartReceivingChunk:(DTBonjourDataChunk *)chunk

Parameters

connection

The connection

chunk

The chunk

Declared In

DTBonjourDataConnection.h

connection:willStartSendingChunk:

Called before the connection will start sending a data chunk

- (void)connection:(DTBonjourDataConnection *)connection willStartSendingChunk:(DTBonjourDataChunk *)chunk

Parameters

connection

The connection

chunk

The chunk

Declared In

DTBonjourDataConnection.h

connectionDidClose:

Called when the connection was closed

- (void)connectionDidClose:(DTBonjourDataConnection *)connection

Parameters

connection

The connection

Declared In

DTBonjourDataConnection.h

connectionDidOpen:

Called when the connection was successfully opend.

- (void)connectionDidOpen:(DTBonjourDataConnection *)connection

Parameters

connection

The connection

Declared In

DTBonjourDataConnection.h