Rev 1598 | Rev 1606 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1598 | Rev 1599 | ||
|---|---|---|---|
| Line 85... | Line 85... | ||
| 85 | try |
85 | try |
| 86 | { |
86 | { |
| 87 | this->client_id_ = net::Manager::Instance()->Connect(this->protocol_, this->address_, this->port_or_baud_); |
87 | this->client_id_ = net::Manager::Instance()->Connect(this->protocol_, this->address_, this->port_or_baud_); |
| 88 | LOG.Info("Connected to " + address); |
88 | LOG.Info("Connected to " + address); |
| 89 | 89 | ||
| 90 | LOG.Info("Sending ping."); |
90 | LOG.Info("Sending ping..."); |
| 91 | type::Byteset buffer(1); |
- | |
| 92 | 91 | ||
| - | 92 | type::Byteset buffer(1); |
|
| 93 | buffer[0] = PACKET_PING; |
93 | buffer[0] = PACKET_PING; |
| 94 | 94 | ||
| 95 | net::Manager::Instance()->SendTo(this->client_id_, buffer); |
95 | net::Manager::Instance()->SendTo(this->client_id_, buffer); |
| 96 | } |
96 | } |
| 97 | catch (std::exception e) |
97 | catch (std::exception e) |