|
Class: RPCClient (in SunRPC)
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
abstract superclass for RPC client programs.
See PortMapperClient, MountClient or DemoClient for concrete examples.
instance creation
-
toHost: hostname
-
-
toHost: hostname port: portNr
-
use this port - instead of default
-
toHost: hostname protocol: prot port: portNr
-
use this protocol/port - instead of default
queries
-
isRPCClientClass
-
calls
-
operation: opName
-
invoke the operation (without arg);
decode the result and return it
-
operation: opName argument: arg
-
encode arg as-per argType and invoke the operation;
decode the result and return it
-
operation: opName argument: arg1 argument: arg2
-
encode arg as-per argType and invoke the operation;
decode the result and return it
-
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
-
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
-
send: aCall
-
operations
-
null
-
private
-
portNumberFromPortMapperForProgram: programNr version: vsnNr host: host protocol: protocol
-
-
protocolFromPortMapperForProgram: programNr version: vsnNr host: host
-
queries
-
operationNames
-
-
operations
-
-
portNumber
-
return the portnumber to use.
Can be set explicitly or else its acquired from the portMapper
-
program
-
-
programNumber
-
-
programVersion
-
-
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
-
version
-
setup
-
close
-
-
host: hostname
-
-
host: hostname port: portNr
-
-
host: hostname protocol: prot port: portNr
-
-
hostName
-
-
programNumber: progNrArg
-
-
programNumber: progNrArg versionNumber: versNrArg
-
-
reconnect
-
reasons are:
Abstract - see DemoClient, MountClient, NFSClient and PortMapperClient for examples.
|