CURLSocket Class Reference
Inherits from | NSObject |
Declared in | CURLSocket.h |
Overview
Internal wrapper for dispatch sources that monitor each of the curl sockets. CURLMulti uses this internally – not intended for public consumption.
Tasks
-
– updateSourcesForSocket:mode:multi:
Create/destroy the dispatch sources, based on the values in the mode parameter. CURLMulti uses this internally – not intended for public consumption.
-
– ownsSource:
Indicates whether a given source is owned by this socket.
Instance Methods
ownsSource:
Indicates whether a given source is owned by this socket.
- (BOOL)ownsSource:(dispatch_source_t)source
Parameters
- source
The source to check.
Return Value
Returns YES if the source is owned by this socket.
Declared In
CURLSocket.h
updateSourcesForSocket:mode:multi:
Create/destroy the dispatch sources, based on the values in the mode parameter. CURLMulti uses this internally – not intended for public consumption.
- (void)updateSourcesForSocket:(int)socket mode:(NSInteger)mode multi:(CURLMulti *)multi
Parameters
- socket
The socket .
- mode
Whether we are interested in reads, writes, or both.
- multi
The multi that this object is working with.
Declared In
CURLSocket.h