HOME

com.ireasoning.protocol.snmp
Class UdpPacketSender

java.lang.Object
  extended bycom.ireasoning.protocol.snmp.UdpPacketSender
All Implemented Interfaces:
PacketSender

public class UdpPacketSender
extends Object
implements PacketSender

For sending out UDP packets.


Constructor Summary
UdpPacketSender()
           
UdpPacketSender(DatagramSocket s)
           
 
Method Summary
 void send(InetAddress address, int port, byte[] data, int length)
          Sends out packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdpPacketSender

public UdpPacketSender(DatagramSocket s)

UdpPacketSender

public UdpPacketSender()
Method Detail

send

public void send(InetAddress address,
                 int port,
                 byte[] data,
                 int length)
          throws IOException
Description copied from interface: PacketSender
Sends out packet.

Specified by:
send in interface PacketSender
Parameters:
address - dest address
port - dest port
data - data to send out
length - length of data
Throws:
IOException

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.