OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Typedefs | Enumerations | Functions
MacSocket.h File Reference

Go to the source code of this file.

Typedefs

typedef OSErr(* MacSocket_IdleWaitCallback )(void *)
 

Enumerations

enum  { kMacSocket_TimeoutErr = -2 }
 

Functions

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_connect (const int inSocketNum, char *inTargetAddressAndPort)
 
OSErr MacSocket_listen (const int inSocketNum, const int inPortNum)
 
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)
 
Boolean MacSocket_RemoteEndIsClosing (const int inSocketNum)
 
Boolean MacSocket_ListenCompleted (const int inSocketNum)
 
Boolean MacSocket_LocalEndIsOpen (const int inSocketNum)
 
Boolean MacSocket_RemoteEndIsOpen (const int inSocketNum)
 
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)
 
void MacSocket_GetSocketErrorInfo (const int inSocketNum, int *outSocketErrCode, char *outSocketErrString, const int inSocketErrStringMaxLength)
 

Typedef Documentation

typedef OSErr(* MacSocket_IdleWaitCallback)(void *)

Definition at line 18 of file MacSocket.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
kMacSocket_TimeoutErr 

Definition at line 10 of file MacSocket.h.

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.