OLD | NEW |
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 /* | 3 /* |
4 * Copyright (c) 2010 The Boeing Company | 4 * Copyright (c) 2010 The Boeing Company |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include <cstring> | 23 #include <cstring> |
24 #include <unistd.h> // close() | 24 #include <unistd.h> // close() |
25 #include <fcntl.h> | 25 #include <fcntl.h> |
26 | 26 |
27 #include "log.h" | 27 #include "log.h" |
28 #include "fatal-error.h" | 28 #include "fatal-error.h" |
29 #include "simple-ref-count.h" | 29 #include "simple-ref-count.h" |
30 #include "system-thread.h" | 30 #include "system-thread.h" |
31 #include "simulator.h" | 31 #include "simulator.h" |
32 | 32 |
33 #include "unix-fd-reader.h" | 33 #include "fd-reader.h" |
34 | 34 |
35 /** | 35 /** |
36 * \file | 36 * \file |
37 * \ingroup system | 37 * \ingroup system |
38 * ns3::FdReader implementation. | 38 * ns3::FdReader implementation. |
39 */ | 39 */ |
40 | 40 |
41 namespace ns3 { | 41 namespace ns3 { |
42 | 42 |
43 NS_LOG_COMPONENT_DEFINE ("FdReader"); | 43 NS_LOG_COMPONENT_DEFINE ("FdReader"); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // is ignored if m_len is negative) | 224 // is ignored if m_len is negative) |
225 else if (data.m_len > 0) | 225 else if (data.m_len > 0) |
226 { | 226 { |
227 m_readCallback (data.m_buf, data.m_len); | 227 m_readCallback (data.m_buf, data.m_len); |
228 } | 228 } |
229 } | 229 } |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
233 } // namespace ns3 | 233 } // namespace ns3 |
OLD | NEW |