public int getReceiveBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected");
public int getReceiveBufferSize() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
	public int getReceiveBufferSize() throws SocketException {		if (impl == null)			throw new SocketException("Not connected");		Object buf = impl.getOption(SocketOptions.SO_RCVBUF);		if (buf instanceof Integer)			return (((Integer)buf).intValue());		else			throw new SocketException("Internal Error: Unexpected type");	}