#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.
|
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) |
|
OSErr MacSocket_close |
( |
const int |
inSocketNum | ) |
|
OSErr MacSocket_connect |
( |
const int |
inSocketNum, |
|
|
char * |
inTargetAddressAndPort |
|
) |
| |
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 |
|
) |
| |
OSErr MacSocket_listen |
( |
const int |
inSocketNum, |
|
|
const int |
inPortNum |
|
) |
| |
Boolean MacSocket_ListenCompleted |
( |
const int |
inSocketNum | ) |
|
Boolean MacSocket_LocalEndIsOpen |
( |
const int |
inSocketNum | ) |
|
int MacSocket_recv |
( |
const int |
inSocketNum, |
|
|
void * |
outBuff, |
|
|
int |
outBuffLength, |
|
|
const Boolean |
inBlock |
|
) |
| |
Boolean MacSocket_RemoteEndIsClosing |
( |
const int |
inSocketNum | ) |
|
Boolean MacSocket_RemoteEndIsOpen |
( |
const int |
inSocketNum | ) |
|
int MacSocket_send |
( |
const int |
inSocketNum, |
|
|
const void * |
inBuff, |
|
|
int |
inBuffLength |
|
) |
| |
void MacSocket_SetUserRefPtr |
( |
const int |
inSocketNum, |
|
|
void * |
inNewRefPtr |
|
) |
| |
OSErr MacSocket_Shutdown |
( |
void |
| ) |
|
OSErr MacSocket_socket |
( |
int * |
outSocketNum, |
|
|
const Boolean |
inDoThreadSwitching, |
|
|
const long |
inTimeoutTicks, |
|
|
MacSocket_IdleWaitCallback |
inIdleWaitCallback, |
|
|
void * |
inUserRefPtr |
|
) |
| |
OSErr MacSocket_Startup |
( |
void |
| ) |
|