HOME

com.ireasoning.protocol.snmp
Class TcpPacketSender

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

public class TcpPacketSender
extends Object
implements PacketSender

For sending out TCP packets.


Constructor Summary
TcpPacketSender()
           
 
Method Summary
 void close()
           
 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

TcpPacketSender

public TcpPacketSender()
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

close

public void close()

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.