|
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.35
date: 2021/01/20 15:29:15
- user: cg
- file: SunRPC_RPCClient.st directory: goodies/communication
- module: stx stc-classLibrary: communication
abstract superclass for RPC client programs.
See PortMapperClient, MountClient or DemoClient for concrete examples.
copyrightCOPYRIGHT (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.
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.
|