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.35 date: 2021/01/20 15:29:15
user: cg
file: SunRPC_RPCClient.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


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

copyright

COPYRIGHT (c) 2002 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:26:48 GMT