Rev 1987 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1987 | Rev 1989 | ||
|---|---|---|---|
| Line 71... | Line 71... | ||
| 71 | public: |
71 | public: |
| 72 | typedef boost::shared_ptr<ConsoleClient> Pointer; |
72 | typedef boost::shared_ptr<ConsoleClient> Pointer; |
| 73 | 73 | ||
| 74 | ConsoleClient(std::string address, unsigned int port) |
74 | ConsoleClient(std::string address, unsigned int port) |
| 75 | { |
75 | { |
| 76 | this->client_id_ = net::Manager::Instance()->Connect(net:: |
76 | this->client_id_ = net::Manager::Instance()->Connect(net::TRANSPORT_PROTOCOL_TCP, address, port); |
| 77 | } |
77 | } |
| 78 | 78 | ||
| 79 | virtual ~ConsoleClient() |
79 | virtual ~ConsoleClient() |
| 80 | { |
80 | { |
| 81 | net::Manager::Instance()->Disconnect(this->client_id_); |
81 | net::Manager::Instance()->Disconnect(this->client_id_); |