Portmapper Procedures
The Portmapper program supports the following procedures:
Procedure
PMAPPROC
_ NULL
Hasnoparameters .AcallercanusethereturncodetodetermineifPortmapperisrunning
.
PMAPPROC _ SET
RegistersitselfwiththePortmapperprogramonthesamemachine
.Itpassesthe :
- Program number
- Program version number
- Transport protocol number
- Port number
The procedure has successfully established the mapping if the return value
is TRUE. The procedure does not establish a mapping if one already exists.
PMAPPROC_UNSET
Unregisters
the program and version numbers with Portmapper on the same machine.
PMAPPROC_GETPORT
Returns the port number when given a program number,
version number, and transport protocol number. A port value of 0 indicates
the program has not been registered.
PMAPPROC_DUMP
Takes no input, but returns a list of program, version,
protocol, and port numbers.
PMAPPROC_CALLIT
Allows
a caller to call another remote procedure on the same machine without knowing
the remote procedure's port number. The PMAPPROC_CALLIT procedure sends
a response only if the procedure is successfully run.
[Back: Contacting Portmapper]
[Next: eXternal Data Representation (XDR)]