public void sendData(String name,int port,String dest)
	{
		try
		{

			n1_client=new Socket(name,port);
			DataOutputStream out=new DataOutputStream(n1_client.getOutputStream());
			
			if(out!=null)
			{
					out.flush();
			}
					int outgoing=0;
					byte buffer[]=msg.getBytes();
					int len=buffer.length;
					int tlength=buffer.length/48;
					int length11=buffer.length%48;
					int len1=len;
				if(length11!=0)
				{
					tlength++;
				}
				out.writeInt(tlength);
				out.writeUTF(destination);
				int st=0;
				int end=48;
           		jTextArea1.append("Packet Length:    "+len+"\n");
				String prefinal="";
				String finalst="";			
			if(len<=48)
			 {

					finalst=prefinal+msg+"\n"+"null";
					jTextArea1.append("packet\t"+(++outgoing)+"\t"+msg+"\n");
					out.writeUTF(dest+msg);
				 			

			 }
			 else
			  {
				
					jTextArea1.append("Packet: "+"\t"+(++outgoing)+"\t"+msg.substring(st,end)+"\n");
					out.writeUTF(dest+msg.substring(st,end));
							
						
				  while(len1>48)
				  {
					 len1-=48;
					 if(len1<=48)
					  {
					
					 jTextArea1.append("Packet: "+"\t"+(++outgoing)+"\t"+msg.substring(end,len)+"\n");
					 out.writeUTF(dest+msg.substring(end,len));
					 		
  					 	
					  }
					  else
					  {
							
							int sp=end+48;
							jTextArea1.append("Packet: "+"\t"+(++outgoing)+"\t"+msg.substring(end,sp)+"\n");
							out.writeUTF(dest+msg.substring(end,sp));
							end=sp;
						
					  }
				  }
			   }
		}
		catch (Exception exp)
		{
			exp.printStackTrace();
		}
	
	
	
	}