Skip to content
Snippets Groups Projects
Commit 130c4dad authored by Marek Blok's avatar Marek Blok
Browse files

socket support fix

parent 68d44c9a
Branches
No related merge requests found
......@@ -53,3 +53,5 @@ examples/socket_server_2.gif
examples/socket_server_2.dot
examples/morse_key.wav
examples/log_file_client.log
examples/morse.wav
examples/socket_client_2.dot
TODO::
? DSP::Clock_ptr => migrate to std::shared_ptr
update Linux makefile
!!! Add TELEsound and PiAPS_sound projects to GitLab and start addaptation to new library version
unsigned long SamplingRate // -1 => 0
LAST DONE:
CHANGES:
- ver. 0.20.004 - <b>2021.04.06</b> Changed:
- Fixed makefiles for Linux - install and examples compilation works
- Initial work on sockets support for Linux
- ver. 0.20.003 - <b>2021.04.06</b> Changed:
- DSP::E_LS_Mode => DSP::e::LogState
- DSP::LogMode => DSP::e::LogMode
......
......@@ -114,7 +114,7 @@ bool DSP::Socket::is_socket_error(const int &iResult) {
int DSP::Socket::GetLastError() {
#ifndef __NO_WINSOCK__
return WSAGetLastError());
return WSAGetLastError();
#else
return errno;
#endif
......@@ -264,7 +264,7 @@ bool DSP::Socket::TryAcceptConnection(void)
return false;
}
//current_socket_state &= DSP::e::SocketStatus::timeout_mask; // no object
if (DSP::Socket::is_socket_valid(res) == true)
if (DSP::Socket::is_socket_error(res) == true)
{
DSP::log << "DSP::Socket::TryAcceptConnection" << DSP::e::LogMode::second << "SOCKET_ERROR" << endl;
DSP::Socket::close_socket();
......
......@@ -11,7 +11,7 @@
#define DSP_VER_MAJOR 0
#define DSP_VER_MINOR 20
#define DSP_VER_BUILD 3 // !!! without zeroes before, else this will be treated as octal number
#define DSP_VER_BUILD 4 // !!! without zeroes before, else this will be treated as octal number
#define DSP_VER_YEAR 2021
#define DSP_VER DSP_VER_MAJOR.DSP_VER_MINOR.DSP_VER_BUILD
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment