#ifndef	FILE_DESCRIPTOR_H
#define	FILE_DESCRIPTOR_H

#include <io/channel.h>

class FileDescriptor : public Channel {
	LogHandle log_;
protected:
	int fd_;
public:
	FileDescriptor(int);
	~FileDescriptor();

	virtual Action *close(EventCallback *);
	virtual Action *read(size_t, EventCallback *);
	virtual Action *write(Buffer *, EventCallback *);

	virtual bool shutdown(bool, bool)
	{
		return (false);
	}
};

#endif /* !FILE_DESCRIPTOR_H */

#ifndef	FILE_DESCRIPTOR_H
#define	FILE_DESCRIPTOR_H

#include <io/channel.h>

class FileDescriptor : public Channel {
	LogHandle log_;
protected:
	int fd_;
public:
	FileDescriptor(int);
	~FileDescriptor();

	virtual Action *close(EventCallback *);
	virtual Action *read(size_t, EventCallback *);
	virtual Action *write(Buffer *, EventCallback *);

	virtual bool shutdown(bool, bool)
	{
		return (true);
	}
};

#endif /* !FILE_DESCRIPTOR_H */

Return success rather than failure from shutdown() on FileDescriptor, since it is entirely immaterial.
Return success rather than failure from shutdown() on FileDescriptor, since it
is entirely immaterial.


git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@333 4068ffdb-0463-0410-8185-8cc71e3bd399
