package connection;

import java.io.IOException;
import java.net.DatagramSocket;

import core.udp.IUdpServiceLogic;


public class ConnectlessUnit implements Runnable{
	/***
	 * 
	 */
	private IUdpServiceLogic logic = null;
	private DatagramSocket socket;
	private Object request;
	
	public ConnectlessUnit(IUdpServiceLogic logic, DatagramSocket socket, Object request){
		this.logic = logic;
		this.socket = socket;
		this.request = request;
		System.out.println("New client access the server.");
	}
	
	@Override
	public void run() {
		// TODO Auto-generated method stub
		try{
			logic.SendResponse(request);											//Call response handle method.

		}finally{
			//Do not close the socket.
		}
	}
	
}

@@ -167,16 +167,71 @@
 %7B%0A%09/***%0A
+%09 * This is the Access Unit for handling UDP protocol.%0A
 %09 * %0A%09 *
@@ -551,16 +551,75 @@
 );%0A%09%7D%0A%09%0A
+%09/***%0A%09 * Only handle response as per given requests.%0A%09 */%0A
 %09@Overri

update comment for understanding