// $Id$
//
-// Copyright (C) 2006
+// Copyright (C) 2006
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
struct SomeAddressingPolicy : public senf::AddressingPolicyBase
{
typedef unsigned Address;
-
+
static void peer(FileHandle handle, unsigned & addr)
{ addr=1; }
static void local(FileHandle, unsigned & addr)
{
static int accept(FileHandle handle, unsigned & addr)
{ addr = 3; return -1; }
+ static int accept(FileHandle handle)
+ { return -1; }
};
struct SomeReadPolicy : public senf::ReadPolicyBase
return write(handle,buffer,size);
}
};
-
+
struct SomeBufferingPolicy : public senf::BufferingPolicyBase
{
static unsigned rcvbuf(FileHandle handle)
\f
// Local Variables:
// mode: c++
+// fill-column: 100
// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
// End: