public int getSoLinger() throws SocketException { if (impl == null) throw new SocketException("Not connected");
public int getSoLinger() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
	public int getSoLinger() throws SocketException {		if (impl == null)			throw new SocketException("Not connected");		Object linger = impl.getOption(SocketOptions.SO_LINGER);		if (linger instanceof Integer)			return (((Integer)linger).intValue());		else			return -1;	}