Inherits from NSObject
Conforms to UDPControllerDelegate
Declared in UDPManager.h
UDPManager.m

Overview

Creates and manages a UDP socket connection to the server.

This class is allocated on client startup, however it requires initialization.

See [SmartFox2XClient initUDP:::]

Tasks

Instance Methods

initDefaults

Internal method to set defaults

- (id)initDefaults

Discussion

Internal method to set defaults

Declared In

UDPManager.h

initializeWithHost:port:

Internal method to initialize the UDPController

- (void)initializeWithHost:(NSString *)udpHost port:(NSInteger)updPort

Discussion

Internal method to initialize the UDPController

Declared In

UDPManager.h

nextUdpPacketId

Returns the next UDP packet Id

- (NSNumber *)nextUdpPacketId

Return Value

NSNumber an incremented packet id

Discussion

Returns the next UDP packet Id

Declared In

UDPManager.h

reset

Internal method to reset the UDPManager when connection is closed

- (void)reset

Discussion

Internal method to reset the UDPManager when connection is closed

Declared In

UDPManager.h

send:

Internal method to send UDP message to the server

- (void)send:(NSData *)message

Parameters

message

the message to send to the server

Discussion

Internal method to send UDP message to the server

Declared In

UDPManager.h

sendInitializationRequest

Internal method to send UDP handshake to the server

- (void)sendInitializationRequest

Discussion

Internal method to send UDP handshake to the server

Declared In

UDPManager.h