ooRexx  4.2.0-source
About: ooRexx (Open Object Rexx) is a free implementation of Object Rexx. Object Rexx is an enhancement of the classic Rexx interpreter; a full-featured programming language with a human-oriented syntax.
  Fossies Dox: ooRexx-4.2.0-source.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

rxsock.h File Reference
#include "oorexxapi.h"
Include dependency graph for rxsock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StemManager
 

Typedefs

typedef struct sockaddr_in sockaddr_in
 
typedef struct in_addr in_addr
 

Functions

void stripBlanks (char *string)
 
void stemToIntArray (RexxCallContext *context, RexxObjectPtr stem, int &count, int *&arr)
 
void intArrayToStem (RexxCallContext *context, RexxObjectPtr stem, int count, int *arr)
 
void stemToSockAddr (RexxCallContext *context, StemManager &stem, sockaddr_in *pSockAddr)
 
void sockAddrToStem (RexxCallContext *context, sockaddr_in *pSockAddr, StemManager &stem)
 
void hostEntToStem (RexxCallContext *context, struct hostent *pHostEnt, StemManager &stem)
 
int stringToSockOpt (const char *pszOptName)
 
void setErrno (RexxCallContext *context)
 
void SetH_Errno (RexxCallContext *context)
 
void cleanup (RexxCallContext *context)
 
int caselessCompare (const char *op1, const char *op2)
 

Typedef Documentation

◆ in_addr

typedef struct in_addr in_addr

Definition at line 49 of file rxsock.h.

◆ sockaddr_in

typedef struct sockaddr_in sockaddr_in

Definition at line 48 of file rxsock.h.

Function Documentation

◆ caselessCompare()

int caselessCompare ( const char *  op1,
const char *  op2 
)

Definition at line 108 of file rxsock.cpp.

Referenced by RexxRoutine3(), RexxRoutine4(), RexxRoutine5(), stemToSockAddr(), and stringToSockOpt().

◆ cleanup()

void cleanup ( RexxCallContext context)

Definition at line 584 of file rxsock.cpp.

References setErrno(), and setH_Errno().

Referenced by RexxRoutine0(), RexxRoutine1(), RexxRoutine2(), RexxRoutine3(), RexxRoutine4(), and RexxRoutine5().

◆ hostEntToStem()

void hostEntToStem ( RexxCallContext context,
struct hostent *  pHostEnt,
StemManager stem 
)

Definition at line 364 of file rxsock.cpp.

References StemManager::setValue().

Referenced by RexxRoutine2(), and RexxRoutine3().

◆ intArrayToStem()

void intArrayToStem ( RexxCallContext context,
RexxObjectPtr  stem,
int  count,
int *  arr 
)

Definition at line 232 of file rxsock.cpp.

References StemManager::resolveStem(), and StemManager::setValue().

Referenced by RexxRoutine4().

◆ setErrno()

void setErrno ( RexxCallContext context)

Definition at line 453 of file rxsock.cpp.

Referenced by cleanup().

◆ SetH_Errno()

void SetH_Errno ( RexxCallContext context)

◆ sockAddrToStem()

void sockAddrToStem ( RexxCallContext context,
sockaddr_in pSockAddr,
StemManager stem 
)

Definition at line 343 of file rxsock.cpp.

References StemManager::setValue().

Referenced by RexxRoutine2(), and RexxRoutine5().

◆ stemToIntArray()

void stemToIntArray ( RexxCallContext context,
RexxObjectPtr  stem,
int &  count,
int *&  arr 
)

Definition at line 173 of file rxsock.cpp.

References StemManager::getValue(), NULLOBJECT, and StemManager::resolveStem().

Referenced by RexxRoutine4().

◆ stemToSockAddr()

void stemToSockAddr ( RexxCallContext context,
StemManager stem,
sockaddr_in pSockAddr 
)

Definition at line 261 of file rxsock.cpp.

References caselessCompare(), getStemElement(), and stripBlanks().

Referenced by RexxRoutine2(), RexxRoutine4(), and RexxRoutine5().

◆ stringToSockOpt()

int stringToSockOpt ( const char *  pszOptName)

Definition at line 422 of file rxsock.cpp.

References caselessCompare().

Referenced by RexxRoutine4().

◆ stripBlanks()

void stripBlanks ( char *  string)

Definition at line 124 of file rxsock.cpp.

Referenced by RexxRoutine3(), and stemToSockAddr().