Rev 1596 | Rev 1642 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1596 | Rev 1599 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | TcpClient(boost::asio::io_service& io_service, ClientId id, ServerId server_id); |
35 | TcpClient(boost::asio::io_service& io_service, ClientId id, ServerId server_id); |
| 36 | virtual ~TcpClient(); |
36 | virtual ~TcpClient(); |
| 37 | 37 | ||
| 38 | void Accept(AcceptorPointer acceptor); |
38 | void Accept(AcceptorPointer acceptor); |
| 39 | void Connect(std::string address, unsigned int port); |
39 | void Connect(std::string address, unsigned int port); |
| 40 | void Disconnect(); |
- | |
| 41 | void Send(type::Byteset data); |
40 | void Send(type::Byteset data); |
| 42 | 41 | ||
| 43 | AcceptorPointer ReleaseAcceptor(); |
42 | AcceptorPointer ReleaseAcceptor(); |
| 44 | 43 | ||
| 45 | protected: |
44 | protected: |
| 46 | void Read(); |
45 | void Read(); |
| - | 46 | void Stop(); |
|
| 47 | 47 | ||
| 48 | private: |
48 | private: |
| 49 | boost::asio::ip::tcp::socket socket_; |
49 | boost::asio::ip::tcp::socket socket_; |
| 50 | AcceptorPointer acceptor_; |
50 | AcceptorPointer acceptor_; |
| 51 | 51 | ||