FMUdpSendArgs Class Reference

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

Overview

UDP 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:ipAddress:port:state:

Initializes a new instance of the class.

- (id)initWithBuffer:(NSMutableData *)buffer ipAddress:(NSString *)ipAddress port:(int)port state:(NSObject *)state

Parameters

name="ipAddress">The

remote IP address.

name="buffer">The

buffer of data to send.

name="port">The

remote port.

name="state">The

custom state object.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– ipAddress

Gets the remote IP address.

- (NSString *)ipAddress

Discussion

Gets the remote IP address.

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

– port

Gets the remote port.

- (int)port

Discussion

Gets the remote port.

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

– setIPAddress:

Sets the remote IP address.

- (void)setIPAddress:(NSString *)value

Discussion

Sets the remote IP address.

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 ( ^ ) ( FMUdpSendCompleteArgs *))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 ( ^ ) ( FMUdpSendFailureArgs *))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 ( ^ ) ( FMUdpSendSuccessArgs *))valueBlock

Discussion

Sets the callback to invoke on success.

Declared In

FM.h

– setPort:

Sets the remote port.

- (void)setPort:(int)value

Discussion

Sets the remote port.

Declared In

FM.h

– setState:

Sets the custom state object.

- (void)setState:(NSObject *)value

Discussion

Sets the custom state object.

Declared In

FM.h

– state

Gets the custom state object.

- (NSObject *)state

Discussion

Gets the custom state object.

Declared In

FM.h

+ udpSendArgsWithBuffer:ipAddress:port:state:

Initializes a new instance of the class.

+ (FMUdpSendArgs *)udpSendArgsWithBuffer:(NSMutableData *)buffer ipAddress:(NSString *)ipAddress port:(int)port state:(NSObject *)state

Parameters

name="ipAddress">The

remote IP address.

name="buffer">The

buffer of data to send.

name="port">The

remote port.

name="state">The

custom state object.

Discussion

Initializes a new instance of the class.

Declared In

FM.h