From 85002883bd7c2e36613b55b8bec885ce37c3bf18 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 18 Oct 2011 03:42:23 +0300 Subject: [PATCH] Better handling of SendFailedException in Connection --- src/connection.cpp | 9 ++++++--- src/socket.cpp | 2 +- src/socket.h | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index 0f09753b..623994c4 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -1104,8 +1104,6 @@ u32 Connection::Receive(u16 &peer_id, u8 *data, u32 datasize) } catch(SendFailedException &e) { - derr_con<<"Receive(): SendFailedException; peer_id=" - <>24; diff --git a/src/socket.h b/src/socket.h index f24947c2..74b5fb64 100644 --- a/src/socket.h +++ b/src/socket.h @@ -97,7 +97,7 @@ public: void setPort(unsigned short port); void print(std::ostream *s) const; void print() const; - std::string serializeString(); + std::string serializeString() const; private: unsigned int m_address; unsigned short m_port; -- 2.30.2