Wiselib
Classes | Defines | Enumerations | Functions | Variables
wiselib.testing/external_interface/iphone/AsyncSocket/AsyncSocket.m File Reference
#import "AsyncSocket.h"
#import <sys/socket.h>
#import <netinet/in.h>
#import <arpa/inet.h>
#import <netdb.h>

Classes

class  AsyncSocket(Private)
class  AsyncReadPacket
 The AsyncReadPacket encompasses the instructions for any given read. More...
class  AsyncWritePacket
 The AsyncWritePacket encompasses the instructions for any given write. More...
class  AsyncSpecialPacket
 The AsyncSpecialPacket encompasses special instructions for interruptions in the read/write queues. More...

Defines

#define DEFAULT_PREBUFFERING   YES
#define READQUEUE_CAPACITY   5
#define WRITEQUEUE_CAPACITY   5
#define READALL_CHUNKSIZE   256
#define WRITE_CHUNKSIZE   (1024 * 4)
#define DEBUG_THREAD_SAFETY   0

Enumerations

enum  AsyncSocketFlags {
  kEnablePreBuffering = 1 << 0, kDidStartDelegate = 1 << 1, kDidCompleteOpenForRead = 1 << 2, kDidCompleteOpenForWrite = 1 << 3,
  kStartingReadTLS = 1 << 4, kStartingWriteTLS = 1 << 5, kForbidReadsWrites = 1 << 6, kDisconnectAfterReads = 1 << 7,
  kDisconnectAfterWrites = 1 << 8, kClosingWithError = 1 << 9, kDequeueReadScheduled = 1 << 10, kDequeueWriteScheduled = 1 << 11,
  kSocketCanAcceptBytes = 1 << 12, kSocketHasBytesAvailable = 1 << 13
}

Functions

static void MyCFSocketCallback (CFSocketRef, CFSocketCallBackType, CFDataRef, const void *, void *)
static void MyCFReadStreamCallback (CFReadStreamRef stream, CFStreamEventType type, void *pInfo)
static void MyCFWriteStreamCallback (CFWriteStreamRef stream, CFStreamEventType type, void *pInfo)

Variables

NSString *const AsyncSocketException = @"AsyncSocketException"
NSString *const AsyncSocketErrorDomain = @"AsyncSocketErrorDomain"

Define Documentation

#define DEBUG_THREAD_SAFETY   0
#define DEFAULT_PREBUFFERING   YES
#define READALL_CHUNKSIZE   256
#define READQUEUE_CAPACITY   5
#define WRITE_CHUNKSIZE   (1024 * 4)
#define WRITEQUEUE_CAPACITY   5

Enumeration Type Documentation

Enumerator:
kEnablePreBuffering 
kDidStartDelegate 
kDidCompleteOpenForRead 
kDidCompleteOpenForWrite 
kStartingReadTLS 
kStartingWriteTLS 
kForbidReadsWrites 
kDisconnectAfterReads 
kDisconnectAfterWrites 
kClosingWithError 
kDequeueReadScheduled 
kDequeueWriteScheduled 
kSocketCanAcceptBytes 
kSocketHasBytesAvailable 

Function Documentation

static void MyCFReadStreamCallback ( CFReadStreamRef  stream,
CFStreamEventType  type,
void *  pInfo 
) [static]
static void MyCFSocketCallback ( CFSocketRef  ,
CFSocketCallBackType  ,
CFDataRef  ,
const void *  ,
void *   
) [static]
static void MyCFWriteStreamCallback ( CFWriteStreamRef  stream,
CFStreamEventType  type,
void *  pInfo 
) [static]

Variable Documentation

NSString* const AsyncSocketErrorDomain = @"AsyncSocketErrorDomain"
NSString* const AsyncSocketException = @"AsyncSocketException"
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines