public static void shutdownSocket(Socket s, boolean shutdownInput, boolean shutdownOutput)
	{
		if (s != null)
		{
			if (shutdownInput)
			{
				try
				{
					s.shutdownInput();
				} catch (IOException e) {}
			}
			if (shutdownOutput)
			{
				try
				{
					s.shutdownOutput();
				} catch (IOException e) {}
			}
		}
	}