|
@@ -62,7 +62,7 @@ public:
|
|
// Receives LPD message and returns LpdMessage which contains
|
|
// Receives LPD message and returns LpdMessage which contains
|
|
// sender(peer) and infohash. If no data is available on socket,
|
|
// sender(peer) and infohash. If no data is available on socket,
|
|
// returns std::shared_ptr<LpdMessage>(). If received data is bad,
|
|
// returns std::shared_ptr<LpdMessage>(). If received data is bad,
|
|
- // then returns std::shared_ptr<LpdMessage>(new LpdMessage())
|
|
|
|
|
|
+ // they are just skipped.
|
|
std::unique_ptr<LpdMessage> receiveMessage();
|
|
std::unique_ptr<LpdMessage> receiveMessage();
|
|
|
|
|
|
const std::shared_ptr<SocketCore>& getSocket() const
|
|
const std::shared_ptr<SocketCore>& getSocket() const
|