Rev 1607 | Rev 1610 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1607 | Rev 1608 | ||
|---|---|---|---|
| Line 52... | Line 52... | ||
| 52 | 52 | ||
| 53 | // Examples of address |
53 | // Examples of address |
| 54 | // udp:192.168.1.250:1100 |
54 | // udp:192.168.1.250:1100 |
| 55 | // serial:/dev/ttyUSB0:38400 |
55 | // serial:/dev/ttyUSB0:38400 |
| 56 | 56 | ||
| 57 |
|
57 | type::StringList parts; |
| 58 | boost::algorithm::split(parts, address, boost::is_any_of(":"), boost::algorithm::token_compress_off); |
58 | boost::algorithm::split(parts, address, boost::is_any_of(":"), boost::algorithm::token_compress_off); |
| 59 | 59 | ||
| 60 | if (parts.size() < 3) |
60 | if (parts.size() < 3) |
| 61 | { |
61 | { |
| 62 | LOG.Error("Malformed address string: " + address); |
62 | LOG.Error("Malformed address string: " + address); |