OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions | Variables
MacSocket.cpp File Reference
#include "MacSocket.h"
#include <Threads.h>
#include <OpenTransport.h>
#include <OpenTpTInternet.h>
#include <OpenTptClient.h>
#include "CPStringUtils.hpp"
#include "ErrorHandling.hpp"

Go to the source code of this file.

Classes

struct  SocketStruct
 

Macros

#define kMaxNumSockets   4
 

Typedefs

typedef struct SocketStruct SocketStruct
 

Functions

void MacSocket_GetSocketErrorInfo (const int inSocketNum, int *outSocketErrCode, char *outSocketErrString, const int inSocketErrStringMaxLength)
 
void MacSocket_SetUserRefPtr (const int inSocketNum, void *inNewRefPtr)
 
void MacSocket_GetLocalIPAndPort (const int inSocketNum, char *outIPAndPort, const int inIPAndPortLength)
 
void MacSocket_GetRemoteIPAndPort (const int inSocketNum, char *outIPAndPort, const int inIPAndPortLength)
 
Boolean MacSocket_RemoteEndIsClosing (const int inSocketNum)
 
Boolean MacSocket_ListenCompleted (const int inSocketNum)
 
Boolean MacSocket_RemoteEndIsOpen (const int inSocketNum)
 
Boolean MacSocket_LocalEndIsOpen (const int inSocketNum)
 
OSErr MacSocket_Startup (void)
 
OSErr MacSocket_Shutdown (void)
 
OSErr MacSocket_socket (int *outSocketNum, const Boolean inDoThreadSwitching, const long inTimeoutTicks, MacSocket_IdleWaitCallback inIdleWaitCallback, void *inUserRefPtr)
 
OSErr MacSocket_listen (const int inSocketNum, const int inPortNum)
 
OSErr MacSocket_connect (const int inSocketNum, char *inTargetAddressAndPort)
 
OSErr MacSocket_close (const int inSocketNum)
 
int MacSocket_recv (const int inSocketNum, void *outBuff, int outBuffLength, const Boolean inBlock)
 
int MacSocket_send (const int inSocketNum, const void *inBuff, int inBuffLength)
 

Variables

int errno
 

Macro Definition Documentation

#define kMaxNumSockets   4

Definition at line 96 of file MacSocket.cpp.

Typedef Documentation

typedef struct SocketStruct SocketStruct

Definition at line 141 of file MacSocket.cpp.

Function Documentation

OSErr MacSocket_close ( const int  inSocketNum)

Definition at line 1068 of file MacSocket.cpp.

OSErr MacSocket_connect ( const int  inSocketNum,
char *  inTargetAddressAndPort 
)

Definition at line 940 of file MacSocket.cpp.

void MacSocket_GetLocalIPAndPort ( const int  inSocketNum,
char *  outIPAndPort,
const int  inIPAndPortLength 
)

Definition at line 209 of file MacSocket.cpp.

void MacSocket_GetRemoteIPAndPort ( const int  inSocketNum,
char *  outIPAndPort,
const int  inIPAndPortLength 
)

Definition at line 246 of file MacSocket.cpp.

void MacSocket_GetSocketErrorInfo ( const int  inSocketNum,
int *  outSocketErrCode,
char *  outSocketErrString,
const int  inSocketErrStringMaxLength 
)

Definition at line 166 of file MacSocket.cpp.

OSErr MacSocket_listen ( const int  inSocketNum,
const int  inPortNum 
)

Definition at line 792 of file MacSocket.cpp.

Boolean MacSocket_ListenCompleted ( const int  inSocketNum)

Definition at line 299 of file MacSocket.cpp.

Boolean MacSocket_LocalEndIsOpen ( const int  inSocketNum)

Definition at line 332 of file MacSocket.cpp.

int MacSocket_recv ( const int  inSocketNum,
void outBuff,
int  outBuffLength,
const Boolean  inBlock 
)

Definition at line 1159 of file MacSocket.cpp.

Boolean MacSocket_RemoteEndIsClosing ( const int  inSocketNum)

Definition at line 283 of file MacSocket.cpp.

Boolean MacSocket_RemoteEndIsOpen ( const int  inSocketNum)

Definition at line 315 of file MacSocket.cpp.

int MacSocket_send ( const int  inSocketNum,
const void inBuff,
int  inBuffLength 
)

Definition at line 1290 of file MacSocket.cpp.

void MacSocket_SetUserRefPtr ( const int  inSocketNum,
void inNewRefPtr 
)

Definition at line 197 of file MacSocket.cpp.

OSErr MacSocket_Shutdown ( void  )

Definition at line 644 of file MacSocket.cpp.

OSErr MacSocket_socket ( int *  outSocketNum,
const Boolean  inDoThreadSwitching,
const long  inTimeoutTicks,
MacSocket_IdleWaitCallback  inIdleWaitCallback,
void inUserRefPtr 
)

Definition at line 720 of file MacSocket.cpp.

OSErr MacSocket_Startup ( void  )

Definition at line 622 of file MacSocket.cpp.

Variable Documentation

int errno