ns-3 Direct Code Execution
Home
Tutorials ▼
Docs ▼
Wiki
Manual
Develop ▼
API
Bugs
API
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
local-socket-fd-factory.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 INRIA
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Frederic Urbani <frederic.urbani@inria.fr>
19
*
20
*/
21
#ifndef LOCAL_SOCKET_FD_FACTORY_H
22
#define LOCAL_SOCKET_FD_FACTORY_H
23
24
#include "
socket-fd-factory.h
"
25
#include "ns3/ptr.h"
26
#include <map>
27
#include <sys/types.h>
28
#include "ns3/object.h"
29
30
namespace
ns3 {
31
32
class
LocalSocketFd;
33
class
LocalStreamSocketFd;
34
35
class
LocalSocketFdFactory
:
public
SocketFdFactory
36
{
37
public
:
38
static
TypeId
GetTypeId
(
void
);
39
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
40
41
LocalSocketFdFactory
();
42
virtual
void
DoDispose
();
43
virtual
~LocalSocketFdFactory
();
44
virtual
UnixFd
*
CreateSocket
(
int
domain,
int
type,
int
protocol);
45
virtual
void
UnlinkNotify
(std::string path);
46
LocalSocketFd
*
FindBinder
(std::string path, TypeId type)
const
;
47
void
RegisterBinder
(std::string path,
LocalSocketFd
* socket);
48
void
UnRegisterBinder
(std::string path);
49
50
private
:
51
typedef
std::map<std::string, LocalSocketFd*>
BindMap
;
52
BindMap
m_bindByPath
;
53
size_t
m_totalBuffersSize
;
54
};
55
56
}
// namespace ns3
57
58
#endif
/* LOCAL_SOCKET_FD_FACTORY_H */
model
local-socket-fd-factory.h
Generated on Fri Aug 30 2013 13:57:56 for ns-3-dce by
1.8.1.2