Re: NS Client API
"Lance James" <[email protected]> Mon, 22 Sep 2003 10:20:51 -0700
| Newsgroups | gmane.comp.security.invisiblenet.iip.devel |
|---|---|
| Message-ID | <08fa01c3812d$e0bf2300$ca42420a@lancexp> |
That is possible. I'll look into it. Lance ----- Original Message ----- From: "Trevor Benedict" <[email protected]> To: "Invisible IRC Project development mailing list" <[email protected]> Sent: Sunday, September 21, 2003 10:51 PM Subject: Re: [iip-dev] NS Client API > 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 > _______________________________________________ iip-dev mailing list [email protected] http://lists.invisiblenet.net/mailman/listinfo/iip-dev