Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update

Signed-off-by: yayanyang <yayanyang@gmail.com>
  • Loading branch information...
commit 0e1e8d7050ff4ef7b6183c2d23f99bbca69e35eb 1 parent a40f502
yayanyang authored
View
6 io/basic_io_object.hpp
@@ -15,7 +15,7 @@
namespace lemon{namespace io{namespace impl{
- template<typename IOService,typename ObjectService>
+ template<typename IOService, class ObjectService>
class basic_io_object : public ObjectService, private lemon::nocopyable
{
public:
@@ -24,9 +24,9 @@ namespace lemon{namespace io{namespace impl{
typedef IOService io_service_type;
- typedef basic_io_object<io_service_type,object_service> self_type;
+ typedef basic_io_object<io_service_type,object_service> self_type;
- typedef struct {object_service unused; io_service_type* service;} block_type;
+ typedef struct {object_service unused; io_service_type* service;} block_type;
public:
View
2  io/basic_io_service.hpp
@@ -12,7 +12,7 @@
#include <lemonxx/sys/sys.hpp>
#include <lemon/io/allocator.hpp>
#include <lemonxx/utility/utility.hpp>
-#include <lemon/io/basic_io_object.hpp>
+#include <lemon/io/basic_socket.hpp>
namespace lemon{namespace io{namespace impl{
View
33 io/basic_socket.hpp
@@ -0,0 +1,33 @@
+/**
+*
+* @file basic_socket
+* @brief Copyright (C) 2012 yayanyang All Rights Reserved
+* @author yayanyang
+* @version 1.0.0.0
+* @date 2012/09/27
+*/
+#ifndef LEMON_IO_BASIC_SOCKET_HPP
+#define LEMON_IO_BASIC_SOCKET_HPP
+
+#include <lemon/io/basic_io_object.hpp>
+
+namespace lemon{namespace io{namespace impl{
+
+ template<class T, class IOService> class basic_socket_service : private lemon::nocopyable
+ {
+ public:
+ typedef IOService io_service_type;
+
+ basic_socket_service(__lemon_native_socket handle) : _handle(handle) {}
+
+
+
+ private:
+
+ __lemon_native_socket _handle;
+ };
+
+}}}
+
+#endif //LEMON_IO_BASIC_SOCKET_HPP
+
Please sign in to comment.
Something went wrong with that request. Please try again.