Sunday, October 7, 2007

Blew the First Milestone (of course) but some API Progress

Various personal and professional obstacles kept me from being where I wanted to be tonight (doesn't that sound familiar) but I actually made some decent process on the API.

Here's what you can do so far:
  • Load and save JXTA configuration with a wrapper around NetworkConfigurator
  • Start, stop, create an EDGE node session with a wrapper around NetworkManager
Amazing, huh?

An excerpt is below

franz-g4:~/dev/playin/peertab/peertab/unstable mdfranz$ ./tncfg.rb
Reading config file from /Users/mdfranz/Documents/dev/playin/peertab/peertab/unstable/.jxta
Peer Name> bobo
Username> whatever
Password> secret
Save config?y
Oct 7, 2007 8:47:48 PM net.jxta.impl.membership.pse.PSEUtils
INFO: Loaded Security Providers into system class loader
franz-g4:~/dev/playin/peertab/peertab/unstable mdfranz$ jirb
irb(main):001:0> require 'tabnet'
=> true
irb(main):002:0> s = TABNET::EdgeSession.new
irb(main):008:0> s.start
Oct 7, 2007 8:49:23 PM net.jxta.impl.membership.pse.PSEUtils
INFO: Loaded Security Providers into system class loader
Oct 7, 2007 8:49:23 PM net.jxta.platform.NetworkManager configure
INFO: Loading existing configuration. mode = EDGE
Oct 7, 2007 8:49:23 PM net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME = file:/Users/mdfranz/Documents/dev/playin/peertab/peertab/unstable/.jxta/
Oct 7, 2007 8:49:24 PM net.jxta.peergroup.WorldPeerGroupFactory newWorldPeerGroup
INFO: Making a new World Peer Group instance using : net.jxta.impl.peergroup.Platform
Oct 7, 2007 8:49:24 PM net.jxta.impl.cm.SrdiIndex clearSrdi
INFO: Clearing SRDI for null


If you want to see the whoe output see http://www.threatmind.net/secwiki/PeerTab/FakeCasts/1 because Blogger barfed on the output.