sg.edu.nus.peer.request
Class ServerPnPHandler

java.lang.Object
  extended by sg.edu.nus.peer.request.UDPHandler
      extended by sg.edu.nus.peer.request.ServerPnPHandler
All Implemented Interfaces:
java.lang.Runnable

public class ServerPnPHandler
extends UDPHandler

A particular UDPHandler is responsible for processing MsgType.PING, MsgType.PONG, and MsgType.TROUBLESHOOT messages from bootstrapper, server peers and client peers.

Version:
1.0 2006-9-26
Author:
Xu Linhao
See Also:
UDPHandler, ServerPnPReceiver

Constructor Summary
ServerPnPHandler(java.net.DatagramSocket ds)
          Construct the handler with a datagram socket.
 
Method Summary
 
Methods inherited from class sg.edu.nus.peer.request.UDPHandler
addUDPListener, processRequest, removeUDPListener, run, stop, stopAllHandlers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerPnPHandler

public ServerPnPHandler(java.net.DatagramSocket ds)
Construct the handler with a datagram socket.

Parameters:
ds - the datagram socket