model/ns3-socket-fd-factory.h
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 05 May 2011 15:16:49 +0200
changeset 71 38b25a74e8e7
parent 66 2fe1f3e576c9
permissions -rw-r--r--
avoid calling write upon flush when called by DeleteProcess

#ifndef NS3_SOCKET_FD_FACTORY_H
#define NS3_SOCKET_FD_FACTORY_H

#include "socket-fd-factory.h"

namespace ns3 {

class SocketFactory;

class Ns3SocketFdFactory : public SocketFdFactory
{
public:
  static TypeId GetTypeId (void);
  Ns3SocketFdFactory ();
  virtual UnixFd *CreateSocket (int domain, int type, int protocol);
 private:
  Ptr<SocketFactory> m_netlink;
};

} // namespace ns3

#endif /* NS3_SOCKET_FD_FACTORY_H */