LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2007,2008, 2009 INRIA, UDcast | 3 * Copyright (c) 2007,2008, 2009 INRIA, UDcast |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 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 | 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 | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr> | 18 * Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr> |
19 * <amine.ismail@udcast.com> | 19 * <amine.ismail@udcast.com> |
20 */ | 20 */ |
21 | 21 |
22 #ifndef __UDP_TRACE_CLIENT__ | 22 #ifndef UDP_TRACE_CLIENT_H |
23 #define __UDP_TRACE_CLIENT__ | 23 #define UDP_TRACE_CLIENT_H |
24 | 24 |
25 #include "ns3/application.h" | 25 #include "ns3/application.h" |
26 #include "ns3/event-id.h" | 26 #include "ns3/event-id.h" |
27 #include "ns3/ptr.h" | 27 #include "ns3/ptr.h" |
28 #include "ns3/ipv4-address.h" | 28 #include "ns3/ipv4-address.h" |
29 #include <vector> | 29 #include <vector> |
| 30 |
30 namespace ns3 { | 31 namespace ns3 { |
31 | 32 |
32 class Socket; | 33 class Socket; |
33 class Packet; | 34 class Packet; |
34 | 35 |
35 /** | 36 /** |
36 * \ingroup udpclientserver | 37 * \ingroup udpclientserver |
37 * \class UdpTraceClient | 38 * \class UdpTraceClient |
38 * \brief A trace based streamer | 39 * \brief A trace based streamer |
39 * | 40 * |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 uint16_t m_peerPort; | 128 uint16_t m_peerPort; |
128 EventId m_sendEvent; | 129 EventId m_sendEvent; |
129 std::vector<struct TraceEntry> m_entries; | 130 std::vector<struct TraceEntry> m_entries; |
130 uint32_t m_currentEntry; | 131 uint32_t m_currentEntry; |
131 static struct TraceEntry g_defaultEntries[]; | 132 static struct TraceEntry g_defaultEntries[]; |
132 uint16_t m_maxPacketSize; | 133 uint16_t m_maxPacketSize; |
133 }; | 134 }; |
134 | 135 |
135 } // namespace ns3 | 136 } // namespace ns3 |
136 | 137 |
137 #endif // __UDP_TRACE_CLIENT__ | 138 #endif /* UDP_TRACE_CLIENT_H */ |
LEFT | RIGHT |