public void sendData(String data)
	{
		if(connected)
		{
			try
			{
				if(sock.isClosed())
					disconnectFromURL();
				else
				if(!sock.isConnected())
					disconnectFromURL();
				else
				{
					final byte[] bytes=Telnet.peruseInput(data);
					if(bytes!=null)
					{
						out.write(bytes);
						if((bytes.length==0)||((bytes[bytes.length-1]!=13)&&(bytes[bytes.length-1]!=10)))
							out.writeBytes("\n");
						out.flush();
					}
				}
			}
			catch(final IOException e)
			{
				disconnectFromURL();
			}
		}
	}