[419] in Info-AFS_Redistribution
Need help with AFS API
daemon@ATHENA.MIT.EDU (Rob Carter)
Thu Nov 14 19:02:26 1991
Date: Thu, 14 Nov 91 18:56:53 EST
From: rob@robsnext.ac.duke.edu (Rob Carter)
To: info-afs@transarc.com
Cc: pwm@bach.ac.duke.edu
Hello folks,
I am trying to use the AFS programming API's to get information from
the various AFS servers. I am having problems talking to the servers and
need some information. I have tried to get VLDB entries and PDB entries to
no avail. The error which I received from the calls VL_GetEntryByName
and PR_ListEntry was "No such file or directory" which I believe has
nothing to do with the actual error occurring because, through debugging, it
appears that an unspecified error occurs in the rx calls. The parameters
used for the two calls are:
VL_GetEntryByName(vl_conn, volname = "users.(username)", ventry)
and
PR_ListEntry(vl_conn, userid, entry)
where username and userid are my username and userid since I know they
are valid test cases. ventry and entry are pointers to malloced areas of
memory for the structures.
From looking the behavior of the two calls, I think the problem occurs
when making the connection, because the manual is not too clear about what
is needed when making a connection to a specific server. To make the
connection, I use:
rx_NewConnection(host = a server address from gethostbyname
port = first available port after 5000, obtained using
rx_Init(port).
service = ?
securityObject = rxnull_NewClientSecurityObject
SecurityIndex = 0)
My questions with this call begin with the service number. Is there a certain
service number for each server, i.e. vlserver, ptsserver, etc., or is there only
one service number for all the servers? Can the securityObject be null when
trying to get information? And can it be null in any circumstance or are
there some instances when it can't be the null object?
Any help would be appreciated. If you need more information, I am
willing to provide it. Thank you for your time.
--Rob Carter--
Duke University
Computer ASSIST Ctr.