eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SunRPC::RPCClient':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: RPCClient (in SunRPC)


Inheritance:

   Object
   |
   +--SunRPC::RPCEndPoint
      |
      +--SunRPC::RPCClient
         |
         +--SmalltalkShareClient
         |
         +--SunRPC::DemoClient
         |
         +--SunRPC::MountClient
         |
         +--SunRPC::NFSClient
         |
         +--SunRPC::PortMapperClient

Package:
stx:goodies/communication
Category:
Net-Communication-SunRPC
Version:
rev: 1.34 date: 2019/06/28 07:22:44
user: cg
file: SunRPC_RPCClient.st directory: goodies/communication
module: stx stc-classLibrary: communication
Author:
Claus Gittinger

Description:


abstract superclass for RPC client programs.
See PortMapperClient, MountClient or DemoClient for concrete examples.


Class protocol:

instance creation
o  toHost: hostname

o  toHost: hostname port: portNr
use this port - instead of default

o  toHost: hostname protocol: prot port: portNr
use this protocol/port - instead of default

queries
o  isRPCClientClass


Instance protocol:

calls
o  operation: opName
invoke the operation (without arg);
decode the result and return it

o  operation: opName argument: arg
encode arg as-per argType and invoke the operation;
decode the result and return it

o  operation: opName argument: arg1 argument: arg2
encode arg as-per argType and invoke the operation;
decode the result and return it

o  operation: opName arguments: argArray
encode argArray as-per argType and invoke the operation;
decode the result and return it.
Returns the receiver for void types.

calls - basic
o  callOperation: opName withData: encodedData
invoke the operation. The encodedData argument must be a byteArray
containing the encoded XDR-data.
Returns the replyHeader which contains the XDR encoded reply data

o  send: aCall

operations
o  null

private
o  portNumberFromPortMapperForProgram: programNr version: vsnNr host: host protocol: protocol

o  protocolFromPortMapperForProgram: programNr version: vsnNr host: host

queries
o  operationNames

o  operations

o  portNumber
return the portnumber to use.
Can be set explicitly or else its acquired from the portMapper

o  program

o  programNumber

o  programVersion

o  protocol
return the protocol to use.
Can be set explicitly or else its acquired from the portMapper.
returns nil, if the remote portmapper cannot be reached

o  version

setup
o  close

o  host: hostname

o  host: hostname port: portNr

o  host: hostname protocol: prot port: portNr

o  hostName

o  programNumber: progNrArg

o  programNumber: progNrArg versionNumber: versNrArg

o  reconnect
reasons are:


Examples:


Abstract - see DemoClient, MountClient, NFSClient and PortMapperClient for examples.

ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 17:35:42 GMT