com.ireasoning.protocol.snmp
Class UdpPacketSender
java.lang.Object
com.ireasoning.protocol.snmp.UdpPacketSender
- All Implemented Interfaces:
- PacketSender
- public class UdpPacketSender
- extends Object
- implements PacketSender
For sending out UDP packets.
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 |
UdpPacketSender
public UdpPacketSender(DatagramSocket s)
UdpPacketSender
public UdpPacketSender()
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 addressport
- dest portdata
- data to send outlength
- length of data
- Throws:
IOException
Copyright © 2002 iReasoning Inc. All Rights Reserved.