Explorar el Código

Add basic socket types

Patrick-Christopher Mattulat hace 2 años
padre
commit
9aee4899db
Se han modificado 2 ficheros con 23 adiciones y 1 borrados
  1. 21 0
      include/ls_std/core/types/SocketTypes.hpp
  2. 2 1
      include/ls_std/ls_std_core.hpp

+ 21 - 0
include/ls_std/core/types/SocketTypes.hpp

@@ -0,0 +1,21 @@
+/*
+ * Author:          Patrick-Christopher Mattulat
+ * Company:         Lynar Studios
+ * E-Mail:          webmaster@lynarstudios.com
+ * Created:         2020-11-16
+ * Changed:         2022-11-16
+ *
+ * */
+
+#ifndef LS_STD_SOCKET_TYPES_HPP
+#define LS_STD_SOCKET_TYPES_HPP
+
+#include <string>
+
+namespace ls::std::core::type
+{
+  using port = unsigned short;
+  using ip_address = ::std::string;
+}
+
+#endif

+ 2 - 1
include/ls_std/ls_std_core.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2022-05-13
- * Changed:         2022-10-27
+ * Changed:         2022-11-16
  *
  * */
 
@@ -30,6 +30,7 @@
 
 #include <ls_std/core/types/EventTypes.hpp>
 #include <ls_std/core/types/KvTypes.hpp>
+#include <ls_std/core/types/SocketTypes.hpp>
 #include <ls_std/core/types/Types.hpp>
 
 #include <ls_std/core/utils/RegexUtils.hpp>