geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol DatagramProtocolTest.java
Date Sun, 14 Mar 2004 00:11:29 GMT
adc         2004/03/13 16:11:29

  Modified:    modules/network/src/test/org/apache/geronimo/network/protocol
                        DatagramProtocolTest.java
  Log:
  Added connectURI
  
  Revision  Changes    Path
  1.3       +3 -3      incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol/DatagramProtocolTest.java
  
  Index: DatagramProtocolTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol/DatagramProtocolTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DatagramProtocolTest.java	10 Mar 2004 09:59:15 -0000	1.2
  +++ DatagramProtocolTest.java	14 Mar 2004 00:11:29 -0000	1.3
  @@ -90,13 +90,13 @@
           });
   
           dgp.setDestinationInterface(new InetSocketAddress("localhost", 0));
  -        dgp.setSourceAddress(new InetSocketAddress("localhost", 8081));
  +        dgp.setSourceAddress(new InetSocketAddress("localhost", 0));
           dgp.setSelectorManager(sm);
   
           dgp.doStart();
   
           DatagramDownPacket packet = new DatagramDownPacket();
  -        packet.setAddress(new InetSocketAddress("localhost", 8081));
  +        packet.setAddress(new InetSocketAddress(dgp.getConnectURI().getHost(), dgp.getConnectURI().getPort()));
           packet.setBuffers(getByteBuffer());
   
           dgp.sendDown(packet);
  
  
  

Mime
View raw message