Rev 1898 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1898 | Rev 1959 | ||
|---|---|---|---|
| Line 32... | Line 32... | ||
| 32 | { |
32 | { |
| 33 | public: |
33 | public: |
| 34 | typedef boost::shared_ptr<TcpClient> Pointer; |
34 | typedef boost::shared_ptr<TcpClient> Pointer; |
| 35 | typedef boost::shared_ptr< boost::asio::ip::tcp::acceptor> AcceptorPointer; |
35 | typedef boost::shared_ptr< boost::asio::ip::tcp::acceptor> AcceptorPointer; |
| 36 | 36 | ||
| 37 | TcpClient(boost::asio::io_service& io_service, |
37 | TcpClient(boost::asio::io_service& io_service, SocketId id, SocketId server_id); |
| 38 | virtual ~TcpClient(); |
38 | virtual ~TcpClient(); |
| 39 | 39 | ||
| 40 | void Accept(AcceptorPointer acceptor); |
40 | void Accept(AcceptorPointer acceptor); |
| 41 | void Connect(std::string address, unsigned int port); |
41 | void Connect(std::string address, unsigned int port); |
| 42 | void Send(common::Byteset data); |
42 | void Send(common::Byteset data); |