info.jedi.net
Class UDPSender

java.lang.Object
  |
  +--info.jedi.net.DefaultPacketHandler
        |
        +--info.jedi.net.UDPSender

public class UDPSender
extends DefaultPacketHandler

This class sends UDP packets. Handles packets just like the DefaultPacketHandler by ignoring them, since UDPSenders don't receive packets, they only send them. Ignores errors (lets another handler take care of them).

See Also:
PacketHandler, MailDaemon

Method Summary
 boolean sendPacket(OutputPacket packet)
          Sends a packet out the current port.
 
Methods inherited from class info.jedi.net.DefaultPacketHandler
handleError, handlePacket, initializePacket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendPacket

public boolean sendPacket(OutputPacket packet)
                   throws java.io.IOException
Sends a packet out the current port.
Overrides:
sendPacket in class DefaultPacketHandler
Parameters:
packet - the packet to send
Returns:
true indicating that sending the packet is complete.
Throws:
java.io.IOException - if there is an error sending off the packet