Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Updated ChangeLog.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Schmidt committed Mar 8, 2012
1 parent 1c172d4 commit 1c32229
Show file tree
Hide file tree
Showing 25 changed files with 49 additions and 27 deletions.
13 changes: 12 additions & 1 deletion ChangeLog.txt
@@ -1,6 +1,17 @@
v0.01.04 (WIP)
v0.03.00 (WIP)
--------------

v0.02.00
--------
* Removed unneeded files causing linker warnings on OSX. Updated gitignore.
* Fixes RUDP BEH_Socket test failure.
* Fixes RudpSocket::SentLength(): Assertion and added error handling in Rudptransport.
* Warning free transport on linux.
* Enabled effc++ for all files.
* Merge branch 'nat_detection' into next.
* Fixed bug in TcpConnection::CheckTimeout.
*

v0.01.03
--------------
* Updated ctest config file in sync with project name change.
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/contact.h
Expand Up @@ -38,7 +38,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/transport.h"
#include "maidsafe/transport/version.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/log.h
Expand Up @@ -17,7 +17,7 @@
#include "maidsafe/common/log.h"

#undef LOG
#define LOG(severity) COMPACT_GOOGLE_LOG_ ## severity(transport, :).stream()
#define LOG(severity) MAIDSAFE_LOG(transport, severity)

#endif // MAIDSAFE_TRANSPORT_LOG_H_

2 changes: 1 addition & 1 deletion src/maidsafe/transport/message_handler.h
Expand Up @@ -38,7 +38,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/transport.h"
#include "maidsafe/transport/version.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/nat_detection.h
Expand Up @@ -35,7 +35,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "maidsafe/transport/contact.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
5 changes: 3 additions & 2 deletions src/maidsafe/transport/nat_detection_service.h
Expand Up @@ -112,13 +112,14 @@ class NatDetectionService : public std::enable_shared_from_this<NatDetectionServ

void SetNatDetectionResponse(
protobuf::NatDetectionResponse *nat_detection_response,
const Endpoint &endpoint, const NatType &nat_type);
const Endpoint &endpoint,
const NatType &nat_type);

void SetRendezvousRequest(protobuf::RendezvousRequest *rendezvous_request,
const Endpoint &proxy);

virtual bool DirectlyConnected(const protobuf::NatDetectionRequest &request,
const Endpoint &endpoint);
const Endpoint &endpoint);
// Proxy to Rendezvous
void SendForwardRendezvousRequest(const Endpoint &rendezvous,
const Endpoint &originator,
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/nat_traversal.h
Expand Up @@ -35,7 +35,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/version.h"
#include "maidsafe/transport/transport.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
4 changes: 3 additions & 1 deletion src/maidsafe/transport/rudp_acceptor.h
Expand Up @@ -97,7 +97,9 @@ class RudpAcceptor {

// A connection request that is yet to be processed by the acceptor.
struct PendingRequest {
PendingRequest() : remote_id(0), remote_endpoint() {}
PendingRequest()
: remote_id(0),
remote_endpoint() {}
boost::uint32_t remote_id;
boost::asio::ip::udp::endpoint remote_endpoint;
};
Expand Down
3 changes: 1 addition & 2 deletions src/maidsafe/transport/rudp_data_packet.cc
Expand Up @@ -46,8 +46,7 @@ RudpDataPacket::RudpDataPacket()
message_number_(0),
time_stamp_(0),
destination_socket_id_(0),
data_() {
}
data_() {}

boost::uint32_t RudpDataPacket::PacketSequenceNumber() const {
return packet_sequence_number_;
Expand Down
4 changes: 4 additions & 0 deletions src/maidsafe/transport/rudp_dispatch_op.h
Expand Up @@ -113,6 +113,10 @@ class RudpDispatchOp {
}

private:
// Disallow copying and assignment.
// RudpDispatchOp(const RudpDispatchOp&);
// RudpDispatchOp &operator=(const RudpDispatchOp&);

DispatchHandler handler_;
boost::asio::ip::udp::socket *socket_;
boost::asio::mutable_buffer buffer_;
Expand Down
4 changes: 2 additions & 2 deletions src/maidsafe/transport/rudp_dispatcher.cc
Expand Up @@ -46,8 +46,8 @@ namespace maidsafe {
namespace transport {

RudpDispatcher::RudpDispatcher()
: acceptor_(0),
sockets_() {
: acceptor_(0),
sockets_() {
}

RudpAcceptor *RudpDispatcher::GetAcceptor() const {
Expand Down
4 changes: 4 additions & 0 deletions src/maidsafe/transport/rudp_flush_op.h
Expand Up @@ -85,6 +85,10 @@ class RudpFlushOp {
}

private:
// Disallow copying and assignment.
// RudpFlushOp(const RudpFlushOp&);
// RudpFlushOp &operator=(const RudpFlushOp&);

FlushHandler handler_;
const boost::system::error_code *ec_;
};
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/rudp_message_handler.h
Expand Up @@ -39,7 +39,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/message_handler.h"
#include "maidsafe/transport/version.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/rudp_parameters.h
Expand Up @@ -35,7 +35,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/common/utils.h"
#include "maidsafe/transport/version.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
3 changes: 1 addition & 2 deletions src/maidsafe/transport/rudp_sender.cc
Expand Up @@ -53,8 +53,7 @@ RudpSender::RudpSender(RudpPeer &peer, // NOLINT (Fraser)
tick_timer_(tick_timer),
congestion_control_(congestion_control),
unacked_packets_(),
send_timeout_() {
}
send_timeout_() {}

boost::uint32_t RudpSender::GetNextPacketSequenceNumber() const {
return unacked_packets_.End();
Expand Down
7 changes: 4 additions & 3 deletions src/maidsafe/transport/rudp_sliding_window.h
Expand Up @@ -57,9 +57,10 @@ class RudpSlidingWindow {

// Construct to start with a specified sequence number.
explicit RudpSlidingWindow(boost::uint32_t initial_sequence_number)
: items_(), maximum_size_(0), begin_(0), end_(0) {
Reset(initial_sequence_number);
}
: items_(),
maximum_size_(RudpParameters::default_window_size),
begin_(initial_sequence_number),
end_(initial_sequence_number) {}

// Reset to empty starting with the specified sequence number.
void Reset(boost::uint32_t initial_sequence_number) {
Expand Down
1 change: 1 addition & 0 deletions src/maidsafe/transport/rudp_socket.h
Expand Up @@ -45,6 +45,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "boost/asio/io_service.hpp"
#include "boost/asio/ip/udp.hpp"
#include "boost/cstdint.hpp"

#include "maidsafe/transport/transport.h"
#include "maidsafe/transport/rudp_ack_packet.h"
#include "maidsafe/transport/rudp_ack_of_ack_packet.h"
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/rudp_transport.h
Expand Up @@ -41,7 +41,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/rudp_parameters.h"
#include "maidsafe/transport/message_handler.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/tcp_transport.h
Expand Up @@ -38,7 +38,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/transport.h"
#include "maidsafe/transport/version.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
1 change: 1 addition & 0 deletions src/maidsafe/transport/tests/transport_api_test.h
Expand Up @@ -140,6 +140,7 @@ class RUDPSingleTransportAPITest : public TransportAPITest<RudpTransport> {
public:
RUDPSingleTransportAPITest() {}
void RestoreRUDPGlobalSettings();
virtual ~RUDPSingleTransportAPITest() {}
};

class RUDPConfigurableTransportAPITest
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/transport.h
Expand Up @@ -47,7 +47,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/version.h"


#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
1 change: 0 additions & 1 deletion src/maidsafe/transport/udp_transport.cc
Expand Up @@ -56,7 +56,6 @@ UdpTransport::UdpTransport(asio::io_service &asio_service) // NOLINT
// If a UdpTransport is restarted and listens on the same port number as
// before, it may receive late replies intended for the previous incarnation.
// To avoid this, we use a random number as the first request id.
next_request_id_ = maidsafe::RandomUint32();
next_request_id_ <<= 32;
bptime::time_duration time = maidsafe::GetDurationSinceEpoch();
next_request_id_ |= time.total_microseconds() & 0xffffffff;
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/udp_transport.h
Expand Up @@ -39,7 +39,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "maidsafe/transport/transport.h"
#include "maidsafe/transport/version.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/utils.h
Expand Up @@ -44,7 +44,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "maidsafe/transport/version.h"

#if MAIDSAFE_TRANSPORT_VERSION != 104
#if MAIDSAFE_TRANSPORT_VERSION != 200
# error This API is not compatible with the installed library.\
Please update the maidsafe-transport library.
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/maidsafe/transport/version.h
Expand Up @@ -28,7 +28,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef MAIDSAFE_TRANSPORT_VERSION_H_
#define MAIDSAFE_TRANSPORT_VERSION_H_

#define MAIDSAFE_TRANSPORT_VERSION 104
#define MAIDSAFE_TRANSPORT_VERSION 200

#if defined CMAKE_MAIDSAFE_TRANSPORT_VERSION &&\
MAIDSAFE_TRANSPORT_VERSION != CMAKE_MAIDSAFE_TRANSPORT_VERSION
Expand Down

2 comments on commit 1c32229

@linqingwu75
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, can your software support TCP-based Nat traversal? from: lqw82@qq.com

@Fraser999
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No - I'm afraid not.

Please sign in to comment.