Mounting remote volume over IP
Mounting remote volume over IP
- Subject: Mounting remote volume over IP
- From: "Lorenzo Thurman" <email@hidden>
- Date: Tue, 13 Aug 2002 17:24:43 -0400 (EDT)
I've been trying to find a solution to this problem for a while now. I've tried usenet, google and a couple of Apple's lists also to no avail, so this be my last effort at it so here goes:
I'm trying to write a program that mounts a remote AppleShare volume over IP. The documentation, TN1111, I understand for the most part except for two data structures, AFPTagData and AFPAlternateAddress. I'm not sure how to fill them out. This is what I have so far with respect to those two, the data type for all the fields is a short (UInt8):
AFPTagData data;
data.fLength = kAFPTagLengthIP;
data.fType = kAFPTagTypeIP;
data.fData[0] = ??? // What goes here?
AFPAlternateAddress addr;
addr.fAddressCount = 1; // I only have one address
addr.fAddressList[0] = ??? // What goes here?
I'm pretty sure that once I fill out the AFPTagData struct, I shove that into the fAddressList[0], but I'm unsure what that entails. Since these items are not shorts how do I coerce them into the correct type. I did find something on the usenet where someone described in very general terms how to create the "variable length data", but maybe I'm a bit too thick and just can't get it. Can someone help me out here? By the way, AppleScript has been offered as a solution, but it won't work in our environment.
Thanks.
------------------------------------------------
Join Excite! -
http://www.excite.com
The most personalized portal on the Web!
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.