01: /**
02: * $Revision$
03: * $Date$
04: *
05: * Copyright (C) 2007 Jive Software. All rights reserved.
06: *
07: * This software is published under the terms of the GNU Public License (GPL),
08: * a copy of which is included in this distribution.
09: */package org.jivesoftware.openfire.mediaproxy;
10:
11: import java.net.DatagramPacket;
12:
13: /**
14: * Listener for datagram packets received.
15: *
16: * @author Thiago Camargo
17: */
18: public interface DatagramListener {
19:
20: /**
21: * Called when a datagram is received. If the method returns false, the
22: * packet MUST NOT be resent from the received Channel.
23: *
24: * @param datagramPacket the datagram packet received.
25: * @return ?
26: */
27: public boolean datagramReceived(DatagramPacket datagramPacket);
28: }
|