#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <setjmp.h>#include "oorexxapi.h"#include <sys/types.h>#include <errno.h>#include <netdb.h>#include <netinet/in.h>#include <sys/socket.h>#include <arpa/inet.h>#include "rxsock.h"Go to the source code of this file.
Macros | |
| #define | PROG_DESC "REXX function package for tcp/ip sockets" |
| #define | PROG_COPY "(c) Copyright International Business Machines Corporation 1993, 2004" |
| #define | PROG_COPY1 "(c) Copyright Rexx Language Association 2005-2014" |
| #define | PROG_ALRRa "All Rights Reserved." |
| #define | PROG_ALRRb "This program and the accompanying materials" |
| #define | PROG_ALRRc "are made available under the terms of the Common Public License v1.0" |
Variables | |
| RexxRoutineEntry | rxsock_functions [] |
| RexxPackageEntry | rxsock_package_entry |
| #define PROG_ALRRa "All Rights Reserved." |
Definition at line 53 of file rxsock.cpp.
| #define PROG_ALRRb "This program and the accompanying materials" |
Definition at line 54 of file rxsock.cpp.
| #define PROG_ALRRc "are made available under the terms of the Common Public License v1.0" |
Definition at line 55 of file rxsock.cpp.
| #define PROG_COPY "(c) Copyright International Business Machines Corporation 1993, 2004" |
Definition at line 51 of file rxsock.cpp.
| #define PROG_COPY1 "(c) Copyright Rexx Language Association 2005-2014" |
Definition at line 52 of file rxsock.cpp.
| #define PROG_DESC "REXX function package for tcp/ip sockets" |
Definition at line 50 of file rxsock.cpp.
| int caselessCompare | ( | const char * | op1, |
| const char * | op2 | ||
| ) |
Definition at line 108 of file rxsock.cpp.
Referenced by RexxRoutine3(), RexxRoutine4(), RexxRoutine5(), stemToSockAddr(), and stringToSockOpt().
| char* getStemElement | ( | RexxCallContext * | context, |
| StemManager & | stem, | ||
| const char * | name | ||
| ) |
Definition at line 156 of file rxsock.cpp.
References StemManager::getValue(), and NULLOBJECT.
Referenced by stemToSockAddr().
| 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().
| void intArrayToStem | ( | RexxCallContext * | context, |
| RexxObjectPtr | stemSource, | ||
| int | count, | ||
| int * | arr | ||
| ) |
Definition at line 232 of file rxsock.cpp.
References StemManager::resolveStem(), and StemManager::setValue().
Referenced by RexxRoutine4().
| void RexxEntry loader | ( | RexxThreadContext * | context | ) |
A loader to perform an startup initialization
| context | The loader thread context |
Definition at line 623 of file rxsock.cpp.
Referenced by RexxMemory::createImage(), LibraryPackage::getPackageTable(), and LibraryLoaderDispatcher::run().
| OOREXX_GET_PACKAGE | ( | rxsock | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockAccept | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockBind | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockClose | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockConnect | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockDie | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockDropFuncs | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockException | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockGetHostByAddr | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockGetHostByName | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockGetHostId | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockGetHostName | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockGetPeerName | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockGetSockName | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockGetSockOpt | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockInit | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockIoctl | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockListen | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockPSock_Errno | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockRecv | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockRecvFrom | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockSelect | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockSend | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockSendTo | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockSetSockOpt | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockShutDown | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockSock_Errno | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockSocket | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockSoClose | ) |
| REXX_TYPED_ROUTINE_PROTOTYPE | ( | SockVersion | ) |
| RexxRoutine0 | ( | int | , |
| SockDie | |||
| ) |
Definition at line 610 of file rxsock.cpp.
| RexxRoutine0 | ( | RexxStringObject | , |
| SockDropFuncs | |||
| ) |
Definition at line 598 of file rxsock.cpp.
| RexxRoutine0 | ( | RexxStringObject | , |
| SockVersion | |||
| ) |
Definition at line 575 of file rxsock.cpp.
| RexxRoutine1 | ( | CSTRING | , |
| SockLoadFuncs | , | ||
| OPTIONAL_CSTRING | , | ||
| version | |||
| ) |
Definition at line 586 of file rxsock.cpp.
| void setErrno | ( | RexxCallContext * | context, |
| bool | noError | ||
| ) |
Definition at line 453 of file rxsock.cpp.
Referenced by RexxRoutine0(), RexxRoutine1(), RexxRoutine2(), RexxRoutine3(), RexxRoutine4(), and RexxRoutine5().
| 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().
| void stemToIntArray | ( | RexxCallContext * | context, |
| RexxObjectPtr | stemSource, | ||
| int & | count, | ||
| int *& | arr | ||
| ) |
Definition at line 173 of file rxsock.cpp.
References StemManager::getValue(), NULLOBJECT, and StemManager::resolveStem().
Referenced by RexxRoutine4().
| 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().
| int stringToSockOpt | ( | const char * | pszOptName | ) |
Definition at line 422 of file rxsock.cpp.
References caselessCompare().
Referenced by RexxRoutine4().
| void stripBlanks | ( | char * | string | ) |
Definition at line 124 of file rxsock.cpp.
Referenced by RexxRoutine3(), and stemToSockAddr().
| RexxRoutineEntry rxsock_functions[] |
Definition at line 670 of file rxsock.cpp.
| RexxPackageEntry rxsock_package_entry |
Definition at line 703 of file rxsock.cpp.