[Tinyos-2-commits]
CVS: tinyos-2.x/support/sdk/java/net/tinyos/packet
BuildSource.java, 1.1.2.4, 1.1.2.4.4.1
David Gay
idgay at users.sourceforge.net
Tue Jun 27 16:11:06 PDT 2006
Update of /cvsroot/tinyos/tinyos-2.x/support/sdk/java/net/tinyos/packet
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14257
Modified Files:
Tag: tinyos-2-0-0-beta2-candidate
BuildSource.java
Log Message:
9001-9002 fixes
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.4.4.1
diff -C2 -d -r1.1.2.4 -r1.1.2.4.4.1
*** BuildSource.java 16 Feb 2006 01:21:26 -0000 1.1.2.4
--- BuildSource.java 27 Jun 2006 23:11:04 -0000 1.1.2.4.4.1
***************
*** 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