// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
prefix_ void senf::FileBody::close()
{
if (!valid())
- throw SystemException(EBADF);
+ throwErrno(EBADF);
v_close();
fd_ = -1;
}
}
}
+prefix_ senf::FileHandle senf::FileBody::handle()
+{
+ return FileHandle(ptr(this));
+}
+
prefix_ int senf::FileBody::fd()
const
{
: body_(body.release())
{}
+prefix_ senf::FileHandle::FileHandle(FileBody::ptr body)
+ : body_(body)
+{}
+
prefix_ senf::FileBody & senf::FileHandle::body()
{
BOOST_ASSERT(body_);