avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/demo/src/java/org/apache/avalon/cornerstone/demos/simpleserver PacketPokingTest.java
Date Tue, 20 Nov 2001 12:23:25 GMT
donaldp     01/11/20 04:23:25

  Added:       apps/demo/src/java/org/apache/avalon/cornerstone/demos/simpleserver
                        PacketPokingTest.java
  Log:
  Add client to help test packet manager.
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-cornerstone/apps/demo/src/java/org/apache/avalon/cornerstone/demos/simpleserver/PacketPokingTest.java
  
  Index: PacketPokingTest.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.avalon.cornerstone.demos.simpleserver;
  
  import java.net.DatagramSocket;
  import java.net.DatagramPacket;
  import java.net.InetAddress;
  
  /**
   * Test Simpleervers packet-manager
   */
  public class PacketPokingTest
  {
      public static final void main( String[] argv )
          throws Exception
      {
          final DatagramSocket socket = new DatagramSocket();
          socket.connect( InetAddress.getLocalHost(), 5053 );
          final DatagramPacket packet = new DatagramPacket( new byte[ 1 ], 0 );
          socket.send( packet );
      }
  }
  
  
  
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message