arne_bab | April 7th, 2008 02:29 PM | Add/Remove eligibleIPAddresses for specific SharedResources (SharedDirectory/SharedFi Hi,
I just discovered this commit message by mariosk: Quote:
Implementation of a new feature for Phex:
"Add/Remove eligibleIPAddresses for specific SharedResources (SharedDirectory/SharedFile)."
The GGEPBlock is now extended to support the origin IP address that searches for a SharedResource. If you need to use the new GGEPBlock extension you should call the following MessagePrefs setting:
MessagePrefs.UseExtendedOriginIpAddress.set(true);
The relevant API call to add a new eligible IP address for a SharedResource is:
PhexSecurityManager.getInstance().addIpSystemRuleL istToSharedResource(directory, friendIpAddress);
where directory is a SharedDirectory object and friendIpAddress is a dotted IP address string.
The relevant API call to remove a shared resource from the HashMap of the eligibleIpSystemRulesList is:
PhexSecurityManager.getInstance().removeIpSystemRu leListFromSharedResource(directory);
where directory is a SharedDirectory object.
| - SourceForge.net Repository - [phex] Revision 4163
Could you tell us a bit more about the plans and ideas you have with the feature?
From the name, things like sharing only among friends/contacts come to my mind.
Amy I right, or am I way off? ;) |