eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SunRPC::MountClient':

Home

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

Class: MountClient (in SunRPC)


Inheritance:

   Object
   |
   +--SunRPC::RPCEndPoint
      |
      +--SunRPC::RPCClient
         |
         +--SunRPC::MountClient

Package:
stx:goodies/communication
Category:
Net-Communication-SunRPC-NFS
Version:
rev: 1.23 date: 2022/10/17 09:57:37
user: stefan
file: SunRPC_MountClient.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


interface to the mount daemon (mountd); see RFC1057 and 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:

spec
o  xdr


Instance protocol:

operations
o  dump
return the mountd information (i.e. who has mounted what).

Usage example(s):

     (self toHost:'localhost') dumpToTranscript; close
     (self toHost:'exept') dumpToTranscript; close
     (self toHost:'funkfix') dumpToTranscript; close

     (self toHost:'joshua' protocol:#udp port:33333) dumpToTranscript; close

o  export
return the exported directory mountd information.

Usage example(s):

     (self toHost:'localhost') export; close
     (self toHost:'exept') export; close
     (self toHost:'funkfix') export; close

     (self toHost:'joshua' protocol:#udp port:33333) exportToTranscript; close

o  mount: dirPath
mount a directory - not yet operational from here
(need to access the mounted files via my own NFSClient, which is not yet ready)

Usage example(s):

     (self new programNumber:100005; host:'localhost') mount:'/foo'; close
     (self new programNumber:100005; host:'localhost') mount:'/'; close
     (self new programNumber:100005; host:'exept') mount:'/foo'; close
     (self new programNumber:100005; host:'exept') mount:'/home'; close
     (self new programNumber:100005; host:'exept') mount:'/'; close
     (self new programNumber:100005; protocol:#tcp; host:'alan')  mount:'/'; close
     (self new programNumber:100005; protocol:#tcp; host:'exept') export; close

     (self new programNumber:200005; protocol:#tcp; host:'alan')  mount:'/'; close
     (self new programNumber:200005; protocol:#tcp; host:'exept') export; close

     (self toHost:'joshua' protocol:#udp port:33333) mount:'C:'; close

utilities
o  dumpToTranscript
dump the mountd information (i.e. who has mounted what).
roughly equivalent to showmount unix command

Usage example(s):

     (self toHost:'localhost') dumpToTranscript; close
     (self toHost:'exeptn.bh.exept.de') dumpToTranscript; close
     (self toHost:'exeptn.bh.exept.de' protocol:#udp port:33333) dumpToTranscript; close

o  exportToTranscript
dump the exported directory mountd information.
roughly equivalent to exports unix command

Usage example(s):

     (self toHost:'localhost') export; close
     (self toHost:'exept') export; close
     (self toHost:'funkfix') export; close
     (self toHost:'joshua' protocol:#udp port:33333) exportToTranscript; close


Examples:


connect test:
  |mountClient|

  mountClient := SunRPC::MountClient toHost:'localhost'.
  mountClient null.
connect test (use standard MOUNT program number; explicit protocol & port):
  |mountClient|

  mountClient := SunRPC::MountClient new.
  mountClient programNumber:100005; host:'exeptn' protocol:#udp port:20048.
  mountClient null; export.
connect test (acquires port via portMapper):
  |mountClient|

  mountClient := SunRPC::MountClient toHost:'exeptn' protocol:#udp port:nil.
  mountClient null.
dump local mounts:
  |mountClient|

  mountClient := SunRPC::MountClient toHost:'localhost'.
  mountClient dumpToTranscript.
dump mounts on some machine:
  |mountClient|

  mountClient := SunRPC::MountClient toHost:'alan' protocol:#udp port:33333.
  mountClient dumpToTranscript.
dump export list:
  |mountClient|

  mountClient := SunRPC::MountClient toHost:'localhost'.
  mountClient export.
use another (non default) port number:
  |mountClient|

  mountClient := SunRPC::MountClient toHost:'localhost' port:33333.
  mountClient dumpToTranscript.


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:37:59 GMT