summaryrefslogtreecommitdiff
path: root/src/net/socket.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:16:45 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:33:42 -0700
commit7af4c5b5c561362cb1135ab504095ae667a9270a (patch)
tree49ffd3008d7634ba36f3951493a68e928407ce89 /src/net/socket.hpp
parent8d7f1dadeeb1dc1609b72de5a4ee3a5247b0e9e6 (diff)
downloadtmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.gz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.bz2
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.xz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.zip
This is more reliable
Diffstat (limited to 'src/net/socket.hpp')
-rw-r--r--src/net/socket.hpp33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/net/socket.hpp b/src/net/socket.hpp
index 64eaf1a..576ef85 100644
--- a/src/net/socket.hpp
+++ b/src/net/socket.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_NET_SOCKET_HPP
-#define TMWA_NET_SOCKET_HPP
+#pragma once
// socket.hpp - Network event system.
//
// Copyright © ????-2004 Athena Dev Teams
@@ -21,28 +20,28 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-# include "fwd.hpp"
+#include "fwd.hpp"
-# include <algorithm>
+#include <algorithm>
-# include <sys/select.h>
+#include <sys/select.h>
-# include <memory>
+#include <memory>
-# include "../compat/iter.hpp"
-# include "../compat/rawmem.hpp"
-# include "../compat/time_t.hpp"
+#include "../compat/iter.hpp"
+#include "../compat/rawmem.hpp"
+#include "../compat/time_t.hpp"
-# include "../strings/astring.hpp"
-# include "../strings/vstring.hpp"
-# include "../strings/xstring.hpp"
+#include "../strings/astring.hpp"
+#include "../strings/vstring.hpp"
+#include "../strings/xstring.hpp"
-# include "../generic/dumb_ptr.hpp"
+#include "../generic/dumb_ptr.hpp"
-# include "../io/fd.hpp"
+#include "../io/fd.hpp"
-# include "ip.hpp"
-# include "timer.t.hpp"
+#include "ip.hpp"
+#include "timer.t.hpp"
namespace tmwa
@@ -176,5 +175,3 @@ void do_sendrecv(interval_t next);
/// Call the parser function for every socket that has read data
void do_parsepacket(void);
} // namespace tmwa
-
-#endif // TMWA_NET_SOCKET_HPP