ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.oroinc.net.DiscardUDPClient

java.lang.Object
   |
   +----com.oroinc.net.DatagramSocketClient
           |
           +----com.oroinc.net.DiscardUDPClient

public class DiscardUDPClient
extends DatagramSocketClient
The DiscardUDPClient class is a UDP implementation of a client for the Discard protocol described in RFC 863. To use the class, just open a local UDP port with open and call send to send datagrams to the server After you're done sending discard data, call close() to clean up properly.

Copyright © 1997 Original Reusable Objects, Inc. All rights reserved.

See Also:
DiscardTCPClient

Variable Index

 o DEFAULT_PORT
The default discard port.

Constructor Index

 o DiscardUDPClient()

Method Index

 o send(byte[], InetAddress)
Same as send(data, data.length, host.
 o send(byte[], int, InetAddress)
Same as send(data, length, host.
 o send(byte[], int, InetAddress, int)
Sends the specified data to the specified server at the specified port.

Variables

 o DEFAULT_PORT
 public static final int DEFAULT_PORT
The default discard port. It is set to 9 according to RFC 863.

Constructors

 o DiscardUDPClient
 public DiscardUDPClient()

Methods

 o send
 public void send(byte data[],
                  int length,
                  InetAddress host,
                  int port) throws IOException
Sends the specified data to the specified server at the specified port.

Parameters:
data - The discard data to send.
length - The length of the data to send. Should be less than or equal to the length of the data byte array.
host - The address of the server.
port - The service port.
Throws: IOException
If an error occurs during the datagram send operation.
 o send
 public void send(byte data[],
                  int length,
                  InetAddress host) throws IOException
Same as send(data, length, host. DiscardUDPClient.DEFAULT_PORT).

 o send
 public void send(byte data[],
                  InetAddress host) throws IOException
Same as send(data, data.length, host. DiscardUDPClient.DEFAULT_PORT).


ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index