ClearBox Server™ v1.2 Developer's Guide

INASManagement::Init

Called by server to initialize synchronization object.

HRESULT Init(
	[in] long nasIPAddr,
	[in] BSTR authority);

Parameters

nasIPAddr
[in] IP address of the NAS with which synchronization object will work.
authority
[in] This is a string received by server calling ISynchronizer::GetSynchronizerInfo and may be used by synchronization object to authenticate on the NAS specified by nasIPAddr.

Return Values

If extension returns error code, no synchronization will be performed with the NAS specified by nasIPAddr.

Thread Safety

This method is called in context of SYNC thread. (See Server Threads Model for details.) You should synchronize data which is shared with other threads.

Memory Management

Server allocates and frees memory for authority string.

Remarks

Some synchronization objects may require more than one authority string (e.g. username and password). In this case server extension may pass two strings as one, separated by some special symbol which cannot be member of any of these strings.

See Also

INASManagement, Synchronization process, ISynchronizer, ISynchronizer::GetSynchronizerInfo


© 2001-2003 XPerience Technologies. www.xperiencetech.com

Created by chm2web html help conversion utility.