View Single Post
  #1 (permalink)  
Old April 7th, 2008
arne_bab's Avatar
arne_bab arne_bab is offline
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default 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?
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.

Last edited by arne_bab; April 7th, 2008 at 02:30 PM. Reason: added link to commit message
Reply With Quote