[Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/java/net/tinyos/packet BuildSource.java, 1.1.2.4, 1.1.2.5

David Gay idgay at users.sourceforge.net
Tue Jun 27 15:21:42 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/support/sdk/java/net/tinyos/packet
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24240/net/tinyos/packet

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	BuildSource.java 
Log Message:
switch BuildSource to 9002 too


Index: BuildSource.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/sdk/java/net/tinyos/packet/Attic/BuildSource.java,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -d -r1.1.2.4 -r1.1.2.5
*** BuildSource.java	16 Feb 2006 01:21:26 -0000	1.1.2.4
--- BuildSource.java	27 Jun 2006 22:21:40 -0000	1.1.2.5
***************
*** 47,52 ****
   * this to work - see net/tinyos/util/Env.INSTALL for details). When
   * MOTECOM is undefined (or the JNI code for Env.java cannot be found), the
!  * packet source is "sf at localhost:9001" (new serial-forwarder, on localhost
!  * port 9001).
   *
   * Packet sources can either be specified by strings (when calling
--- 47,52 ----
   * this to work - see net/tinyos/util/Env.INSTALL for details). When
   * MOTECOM is undefined (or the JNI code for Env.java cannot be found), the
!  * packet source is "sf at localhost:9002" (new serial-forwarder, on localhost
!  * port 9002).
   *
   * Packet sources can either be specified by strings (when calling
***************
*** 121,130 ****
      /**
       * Make the specified packet source
!      * @param name Name of the packet source, or null for "sf at localhost:9001"
       * @return The packet source, or null if it could not be made
       */
      public static PacketSource makePacketSource(String name) {
  	if (name == null)
! 	    name = "sf at localhost:9001"; // default source
  
  	ParseArgs parser = new ParseArgs(name, "@");
--- 121,130 ----
      /**
       * Make the specified packet source
!      * @param name Name of the packet source, or null for "sf at localhost:9002"
       * @return The packet source, or null if it could not be made
       */
      public static PacketSource makePacketSource(String name) {
  	if (name == null)
! 	    name = "sf at localhost:9002"; // default source
  
  	ParseArgs parser = new ParseArgs(name, "@");
***************
*** 170,179 ****
      /**
       * Make a serial-forwarder source  (tcp/ip client) from an argument string
!      * @param args "hostname:port-number", or null for "localhost:9001"
       * @return The new PacketSource or null for invalid arguments
       */
      public static PacketSource makeArgsSF(String args) {
  	if (args == null)
! 	    args = "localhost:9001";
  
  	ParseArgs parser = new ParseArgs(args, ":");
--- 170,179 ----
      /**
       * Make a serial-forwarder source  (tcp/ip client) from an argument string
!      * @param args "hostname:port-number", or null for "localhost:9002"
       * @return The new PacketSource or null for invalid arguments
       */
      public static PacketSource makeArgsSF(String args) {
  	if (args == null)
! 	    args = "localhost:9002";
  
  	ParseArgs parser = new ParseArgs(args, ":");



More information about the Tinyos-2-commits mailing list