Classes
The following classes are available globally.
-
GCDAsyncUdpSocket uses the standard delegate paradigm, but executes all delegate callbacks on a given delegate dispatch queue. This allows for maximum concurrency, while at the same time providing easy thread safety.
You MUST set a delegate AND delegate dispatch queue before attempting to use the socket, or you will get an error.
The socket queue is optional. If you pass NULL, GCDAsyncSocket will automatically create its own socket queue. If you choose to provide a socket queue, the socket queue must not be a concurrent queue, then please see the discussion for the method markSocketQueueTargetQueue.
The delegate queue and socket queue can optionally be the same.
See moreDeclaration
Objective-C
@interface GCDAsyncUdpSocket : NSObject
Swift
class GCDAsyncUdpSocket : NSObject