Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Digital Signal Processing Engine Library
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
DSPE
Digital Signal Processing Engine Library
Commits
130c4dad
Commit
130c4dad
authored
3 years ago
by
Marek Blok
Browse files
Options
Downloads
Patches
Plain Diff
socket support fix
parent
68d44c9a
Branches
Branches containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
CHANGELOG
+4
-1
4 additions, 1 deletion
CHANGELOG
src/cpp/DSP_sockets.cpp
+2
-2
2 additions, 2 deletions
src/cpp/DSP_sockets.cpp
src/include/DSP_lib.h
+1
-1
1 addition, 1 deletion
src/include/DSP_lib.h
with
9 additions
and
4 deletions
.gitignore
+
2
−
0
View file @
130c4dad
...
...
@@ -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
This diff is collapsed.
Click to expand it.
CHANGELOG
+
4
−
1
View file @
130c4dad
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
...
...
This diff is collapsed.
Click to expand it.
src/cpp/DSP_sockets.cpp
+
2
−
2
View file @
130c4dad
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
src/include/DSP_lib.h
+
1
−
1
View file @
130c4dad
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment