summaryrefslogtreecommitdiff
path: root/src/syncServer.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-11-25 02:13:05 +0000
committerChristian Pointner <equinox@anytun.org>2008-11-25 02:13:05 +0000
commit126e3621fa91a0b5907adc36f2dffc6c81208dc9 (patch)
tree4c86c513fbe8e388ce1aabcf6cf18e752f6ffb51 /src/syncServer.h
parentfixed readme (diff)
small type cleanup
Diffstat (limited to 'src/syncServer.h')
-rw-r--r--src/syncServer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/syncServer.h b/src/syncServer.h
index ed0d4fd..bb8f734 100644
--- a/src/syncServer.h
+++ b/src/syncServer.h
@@ -13,12 +13,10 @@
#include <list>
#include "syncTcpConnection.h"
-//using boost::asio::ip::tcp;
-
class SyncServer
{
public:
- SyncServer(boost::asio::io_service& io_service, boost::asio::ip::tcp::endpoint tcp_endpoint );
+ SyncServer(boost::asio::io_service& io_service, SyncTcpConnection::proto::endpoint tcp_endpoint );
boost::function<void(SyncTcpConnection *)> onConnect;
std::list<SyncTcpConnection::pointer> conns_;
void send(std::string message);
@@ -27,6 +25,6 @@ private:
void handle_accept(SyncTcpConnection::pointer new_connection,
const boost::system::error_code& error);
Mutex mutex_; //Mutex for list conns_
- boost::asio::ip::tcp::acceptor acceptor_;
+ SyncTcpConnection::proto::acceptor acceptor_;
};
#endif