UDPManager Class Reference
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.
Tasks
-
– initDefaults
Internal method to set defaults
-
– initializeWithHost:port:
Internal method to initialize the UDPController
-
– reset
Internal method to reset the UDPManager when connection is closed
-
– sendInitializationRequest
Internal method to send UDP handshake to the server
-
– send:
Internal method to send UDP message to the server
-
– nextUdpPacketId
Returns the next UDP packet Id
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