X-Git-Url: https://git.syn-net.org/debian/?p=anytun.git;a=blobdiff_plain;f=src%2FsyncTcpConnection.h;h=807d10eb2e9e49258e2d92e1a75fab077b572e17;hp=e35c57438f3f3e6087bd3fd0c7dddc2c9171edea;hb=ef0cacf2508418915d3f64b04003be3c13fed3cc;hpb=ece844834d2cecc028ce81ca283f5d441088580e diff --git a/src/syncTcpConnection.h b/src/syncTcpConnection.h index e35c574..807d10e 100644 --- a/src/syncTcpConnection.h +++ b/src/syncTcpConnection.h @@ -11,7 +11,7 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, + * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, * Christian Pointner * * This file is part of Anytun. @@ -46,21 +46,20 @@ public: typedef boost::shared_ptr pointer; typedef boost::asio::ip::tcp proto; - static pointer create(boost::asio::io_service& io_service) - { - return pointer(new SyncTcpConnection(io_service)); - }; + static pointer create(boost::asio::io_service& io_service) { + return pointer(new SyncTcpConnection(io_service)); + }; - boost::function onConnect; + boost::function onConnect; proto::socket& socket(); void start(); - void Send(std::string message); + void Send(std::string message); private: SyncTcpConnection(boost::asio::io_service& io_service); void handle_write(const boost::system::error_code & /*error*/, - size_t /*bytes_transferred*/); + size_t /*bytes_transferred*/); proto::socket socket_; };