Cliser

cliser
Class ServerUDPCommunicator

java.lang.Object
  |
  +--cliser.Communicator
        |
        +--cliser.UDPCommunicator
              |
              +--cliser.ServerUDPCommunicator

public class ServerUDPCommunicator
extends UDPCommunicator


Fields inherited from class cliser.UDPCommunicator
PACKET_MAX
 
Constructor Summary
ServerUDPCommunicator(int port)
          explicit constructor
ServerUDPCommunicator(ServerUDPCommunicator sudpCommunicator)
          pseudo copy constructor
 
Method Summary
 java.net.DatagramPacket acceptPacket()
          method to get the first packet
protected  java.net.DatagramSocket initSocket()
          definition of abstract UDPCommunicator.initSocket() PRE: myPort is initialized.
 
Methods inherited from class cliser.UDPCommunicator
finalize, getLastPacket, getLastSender, getLastSendersPort, getLocalHost, getLocalPort, getRemoteHost, getRemotePort, getSocket, receive, send, setLastPacket, setTimeOut
 
Methods inherited from class cliser.Communicator
getPort, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerUDPCommunicator

public ServerUDPCommunicator(int port)
explicit constructor

ServerUDPCommunicator

public ServerUDPCommunicator(ServerUDPCommunicator sudpCommunicator)
pseudo copy constructor
Method Detail

initSocket

protected java.net.DatagramSocket initSocket()
definition of abstract UDPCommunicator.initSocket() PRE: myPort is initialized.
Returns:
a DatagramSocket initialized to myPort.
Overrides:
initSocket in class UDPCommunicator

acceptPacket

public java.net.DatagramPacket acceptPacket()
method to get the first packet
Returns:
the next packet sent to me.

Cliser

Cliser is open-source freeware distributed under the GNU Public License.