Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/tinycsocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#ifndef TINYCSOCKET_INTERNAL_H_
#define TINYCSOCKET_INTERNAL_H_

static const char* const TCS_VERSION_TXT = "v0.3.84";
static const char* const TCS_VERSION_TXT = "v0.3.85";
extern const char* const TCS_LICENSE_TXT;

/*
Expand Down
2 changes: 1 addition & 1 deletion src/tinycsocket_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef TINYCSOCKET_INTERNAL_H_
#define TINYCSOCKET_INTERNAL_H_

static const char* const TCS_VERSION_TXT = "v0.3.84";
static const char* const TCS_VERSION_TXT = "v0.3.85";
extern const char* const TCS_LICENSE_TXT;

/*
Expand Down
7 changes: 3 additions & 4 deletions tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1608,9 +1608,8 @@ TEST_CASE("TCS_TCP_NODELAY")
CHECK(socket_false_value == false);
CHECK(socket_true_value == true);

// The option must end up as TCP_NODELAY on the TCP level, verify through the raw option API
int native_false = -1;
int native_true = -1;
int native_false = 0;
int native_true = 0;
size_t native_size = sizeof(native_false);
CHECK(tcs_opt_get(socket_false, TCS_SOL_TCP, TCS_TCP_NODELAY, &native_false, &native_size) == TCS_SUCCESS);
native_size = sizeof(native_true);
Expand All @@ -1623,7 +1622,7 @@ TEST_CASE("TCS_TCP_NODELAY")
socket_true_value = true;
CHECK(tcs_opt_tcp_no_delay_get(socket_true, &socket_true_value) == TCS_SUCCESS);
CHECK(socket_true_value == false);
native_true = -1;
native_true = 0;
native_size = sizeof(native_true);
CHECK(tcs_opt_get(socket_true, TCS_SOL_TCP, TCS_TCP_NODELAY, &native_true, &native_size) == TCS_SUCCESS);
CHECK(native_true == 0);
Expand Down
Loading