FMTcpSendArgs Class Reference

Inherits from FMDynamic : FMSerializable : NSObject
Declared in FM.h

Overview

TCP send arguments.

– buffer

Gets the buffer of data to send.

- (NSMutableData *)buffer

Discussion

Gets the buffer of data to send.

Declared In

FM.h

– initWithBuffer:state:

Initializes a new instance of the class.

- (id)initWithBuffer:(NSMutableData *)buffer state:(NSObject *)state

Parameters

name="buffer">The

buffer of data to send.

name="state">The

custom state object.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– initWithBuffer:state:timeout:

Initializes a new instance of the class.

- (id)initWithBuffer:(NSMutableData *)buffer state:(NSObject *)state timeout:(int)timeout

Parameters

name="buffer">The

buffer of data to send.

name="timeout">The

timeout.

name="state">The

custom state object.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– onComplete

Gets the callback to invoke on complete.

- (FMCallback *)onComplete

Discussion

Gets the callback to invoke on complete.

Declared In

FM.h

– onFailure

Gets the callback to invoke on failure.

- (FMCallback *)onFailure

Discussion

Gets the callback to invoke on failure.

Declared In

FM.h

– onSuccess

Gets the callback to invoke on success.

- (FMCallback *)onSuccess

Discussion

Gets the callback to invoke on success.

Declared In

FM.h

– setBuffer:

Sets the buffer of data to send.

- (void)setBuffer:(NSMutableData *)value

Discussion

Sets the buffer of data to send.

Declared In

FM.h

– setOnComplete:

Sets the callback to invoke on complete.

- (void)setOnComplete:(FMCallback *)value

Discussion

Sets the callback to invoke on complete.

Declared In

FM.h

– setOnCompleteBlock:

Sets the callback to invoke on complete.

- (void)setOnCompleteBlock:(void ( ^ ) ( FMTcpSendCompleteArgs *))valueBlock

Discussion

Sets the callback to invoke on complete.

Declared In

FM.h

– setOnFailure:

Sets the callback to invoke on failure.

- (void)setOnFailure:(FMCallback *)value

Discussion

Sets the callback to invoke on failure.

Declared In

FM.h

– setOnFailureBlock:

Sets the callback to invoke on failure.

- (void)setOnFailureBlock:(void ( ^ ) ( FMTcpSendFailureArgs *))valueBlock

Discussion

Sets the callback to invoke on failure.

Declared In

FM.h

– setOnSuccess:

Sets the callback to invoke on success.

- (void)setOnSuccess:(FMCallback *)value

Discussion

Sets the callback to invoke on success.

Declared In

FM.h

– setOnSuccessBlock:

Sets the callback to invoke on success.

- (void)setOnSuccessBlock:(void ( ^ ) ( FMTcpSendSuccessArgs *))valueBlock

Discussion

Sets the callback to invoke on success.

Declared In

FM.h

– setState:

Sets the custom state object.

- (void)setState:(NSObject *)value

Discussion

Sets the custom state object.

Declared In

FM.h

– setTimeout:

Sets the timeout.

- (void)setTimeout:(int)value

Discussion

Sets the timeout.

Declared In

FM.h

– state

Gets the custom state object.

- (NSObject *)state

Discussion

Gets the custom state object.

Declared In

FM.h

+ tcpSendArgsWithBuffer:state:

Initializes a new instance of the class.

+ (FMTcpSendArgs *)tcpSendArgsWithBuffer:(NSMutableData *)buffer state:(NSObject *)state

Parameters

name="buffer">The

buffer of data to send.

name="state">The

custom state object.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

+ tcpSendArgsWithBuffer:state:timeout:

Initializes a new instance of the class.

+ (FMTcpSendArgs *)tcpSendArgsWithBuffer:(NSMutableData *)buffer state:(NSObject *)state timeout:(int)timeout

Parameters

name="buffer">The

buffer of data to send.

name="timeout">The

timeout.

name="state">The

custom state object.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– timeout

Gets the timeout.

- (int)timeout

Discussion

Gets the timeout.

Declared In

FM.h

– willTimeout

Gets whether the send will timeout eventually.

- (bool)willTimeout

Discussion

Gets whether the send will timeout eventually.

Declared In

FM.h