LEFT | RIGHT |
(no file at all) | |
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: Amine Ismail <amine.ismail@sophia.inria.fr> | 18 * Author: Amine Ismail <amine.ismail@sophia.inria.fr> |
19 * <amine.ismail@udcast.com> | 19 * <amine.ismail@udcast.com> |
20 * | 20 * |
21 */ | 21 */ |
22 | 22 |
23 #ifndef UDP_CLIENT_H | 23 #ifndef UDP_CLIENT_H |
24 #define UDP_CLIENT_H | 24 #define UDP_CLIENT_H |
25 | 25 |
26 #include "ns3/application.h" | 26 #include "ns3/application.h" |
27 #include "ns3/event-id.h" | 27 #include "ns3/event-id.h" |
28 #include "ns3/ptr.h" | 28 #include "ns3/ptr.h" |
29 #include "ns3/ipv4-address.h" | 29 #include "ns3/ipv4-address.h" |
| 30 #include "ns3/socket.h" |
30 | 31 |
31 namespace ns3 { | 32 namespace ns3 { |
32 | 33 |
33 class Socket; | 34 class Socket; |
34 class Packet; | 35 class Packet; |
35 | 36 |
36 /** | 37 /** |
37 * \ingroup udpclientserver | 38 * \ingroup udpclientserver |
38 * | 39 * |
39 * \brief A Udp client. Sends UDP packet carrying sequence number and time stamp | 40 * \brief A Udp client. Sends UDP packet carrying sequence number and time stamp |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Ptr<Socket> m_socket; //!< Socket | 87 Ptr<Socket> m_socket; //!< Socket |
87 Address m_peerAddress; //!< Remote peer address | 88 Address m_peerAddress; //!< Remote peer address |
88 uint16_t m_peerPort; //!< Remote peer port | 89 uint16_t m_peerPort; //!< Remote peer port |
89 EventId m_sendEvent; //!< Event to send the next packet | 90 EventId m_sendEvent; //!< Event to send the next packet |
90 | 91 |
91 }; | 92 }; |
92 | 93 |
93 } // namespace ns3 | 94 } // namespace ns3 |
94 | 95 |
95 #endif /* UDP_CLIENT_H */ | 96 #endif /* UDP_CLIENT_H */ |
LEFT | RIGHT |