Re: NS Client API
"Trevor Benedict" <[email protected]> Sun, 21 Sep 2003 22:51:58 -0700
| Newsgroups | gmane.comp.security.invisiblenet.iip.devel |
|---|---|
| Message-ID | <001801c380cd$a407ee20$0301a8c0@mrechomain> |
Would be nice to have access to a cvs or something. Mr. Echo ----- Original Message ----- From: "wiht" <[email protected]> To: <[email protected]> Sent: Saturday, September 20, 2003 5:21 PM Subject: [iip-dev] NS Client API > The client API for the naming service is included in the attachment. It will > need improvement, but this is it for now. > ---------------------------------------------------------------------------- ---- > Naming Service Client API > Version 1.0 > September 20, 2003 > > This API enables client software to query naming servers. At the moment, only > a Java version is available, but versions in other programming languages will > be written as the I2P network support for those languages becomes better. The > author welcomes suggestions for adding to and/or improving this API and for > writing it in other programming languages. > > public interface NSQuery { > > public final static int QUERY_SUCCESS = 0; > public final static int QUERY_FAILURE = 1; > > /* Sets the default server to query. */ > public void setDefaultServer( Destination ds ); > > /* The following methods send queries corresponding to the > * types in the naming service specification. > */ > public String getGroupInformation( String groupName ); > public Entity_Record getEntityInformation( String entityName ); > public Entity_List getList( int service ); > > /* Same queries, but allow specification of server to query. */ > public String getGroupInfo( String groupName, Destination ns ); > public Entity_Record getEntityInfo( String entityName, Destination ns ); > public Entity_List getEntityList( int service, Destination ns ); > > /* See whether last query was successful. */ > public int queryStatus(); > > } > ---------------------------------------------------------------------------- ---- > _______________________________________________ > iip-dev mailing list > [email protected] > http://lists.invisiblenet.net/mailman/listinfo/iip-dev > _______________________________________________ iip-dev mailing list [email protected] http://lists.invisiblenet.net/mailman/listinfo/iip-dev