beautypg.com

Apple AppleShare 3.0 File Server Controls User Manual

Page 6

background image

Some of the server control call descriptions are accompanied by a second

segment of sample code that shows a particular use of that call. Each of

these additional code segments performs one of the following tasks:

- gets the server version, status, and setup information and then stores that

information in global variables for later use by other functions

- lists the shared volumes and folders

- lists the installed server event handlers

- lists the users connected to the server

- gets the mount information for a user's mounted volumes or folders

- disconnects a user from the server

- sends a message to all connected users

- disconnects the users of a specified volume

Some of the code samples use global variables to store information that might

be needed by other functions. Here are the global variables used within these

code samples:

- General

- gErr: OSErr

- gHasServerDispatch: Boolean

- Used by SCServerVersion

- gServerExtensionName: Str31

- gServerType: Integer

- gServerVersion: Integer

- Used by SCPollServer

- gServerState: Integer;

- gDisconnectState: Integer;

- gServerError: Integer;

- gSecondsLeft: LongInt;

- Used by SCGetSetupInfo

- gSetupInfoRec: SetupInfoRec;

- gMaxVolumes: Integer

- gMaxExpFolders: Integer

- gCurMaxSessions: Integer