Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Development Open Discussion (https://www.gnutellaforums.com/development-open-discussion/)
-   -   Add/Remove eligibleIPAddresses for specific SharedResources (SharedDirectory/SharedFi (https://www.gnutellaforums.com/development-open-discussion/83183-add-remove-eligibleipaddresses-specific-sharedresources-shareddirectory-sharedfi.html)

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? ;)


All times are GMT -7. The time now is 06:32 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.