31 Commits (a7f1dd3c40418960d2045a0a144c4973f9daff66)

Author SHA1 Message Date
Adam Honse c71cc4f18a Change SPDX license identifier from GPL 2.0 only to GPL 2.0 or later, as the original LICENSE file includes an or later clause at the end so the file headers were incorrect 7 months ago
Adam Honse df73d0263a Add send_in_progress locks around send groups in NetworkServer.cpp 10 months ago
Adam Honse 0cfe5ae0bb Add SDK command to rescan devices 10 months ago
Adam Honse 471f9d3e2e Add server option to disable the size check called legacy workaround, which can be enabled to allow some old SDK apps that didn't properly implement the size to still be used 1 year ago
Dmitry Kychanov b171906162 Fixed server 2 years ago
Adam Honse a7c400bc65 Update yet more file header comments to standardized new format 2 years ago
Jack 4baf19f13a SDK plugin control 3 years ago
B Horn 640eb7905c SDK Listening Options 4 years ago
k1-801 65623d3978 Autoclose updated
Commit amended for code style by Adam Honse <calcprogrammer1@gmail.com>
5 years ago
k1-801 abfb6ea22d Tiny fixups (server conn info leak closed, log va leak closed, config dir optimized)
Commit amended for code style by Adam Honse <calcprogrammer1@gmail.com>
5 years ago
k1-801 02ba8a799e Server freed from ResourceManager
Commit amended to revert OpenRGBInterfaces.h header (may reconsider in the future) by Adam Honse
<calcprogrammer1@gmail.com>
5 years ago
morg 79dacbaeb0 Fix crash on server stop
Commit amended to initialize listening variable by Adam Honse <calcprogrammer1@gmail.com>
5 years ago
morg e2bc1003e6 Add profile management to SDK
Commit amended for code style by Adam Honse <calcprogrammer1@gmail.com>
5 years ago
Adam Honse 72da8f362c SDK protocol versioning implemented. Protocol updated to version 1 which adds vendor string to controller request. 6 years ago
k1-801 dde857dfb4 Tiny threads fixes & a little bit of safety 6 years ago
Adam Honse 60fd721586 Server sends a request to the client when the device list is updated 6 years ago
B Horn 47baeb6b6b Improving NetworkServer's memory management (#373)
This patch resolves several bugs:

* NetworkServer would allocate various instances of `NetworkClientInfo`.
  This is patched by deallocating the NetworkClientInfo when it's
  listening thread ends in the `listen_done` section.

* Memory would be allocated for threads that wouldn't be freed. This
  is resolved by detaching from the threads, so they no longer need to
  be joined to be freed, and then freeing the memory as they finish.

* Thread-Safety issues involving `ServerClients` would result in stray
  `NetworkClientInfo`'s not being removed from the list in certain
  situations. This is resolved by used a mutex to lock access to this
  from different threads.
6 years ago
Térence Clastres b79ff124e6 Replace Sleep() by std:🧵:sleep_for() 6 years ago
Adam Honse 352b9928ca Add file headers to network files and some minor code cleanup 6 years ago
Adam Honse a5e9a3de05 Add mutex on updating callbacks 6 years ago
Adam Honse edf1b251c0 Send and receive client string 6 years ago
Adam Honse 9ff4314840 Add callback to NetworkServer to handle UI updates when client information changes 6 years ago
Adam Honse 3ad0986ae7 Add IP field to client information and display client IP in the server tab's connected client list 6 years ago
Adam Honse 6bfc9dd9db Create a structure to hold client information in the network server and fix i2c hanging on destructor when bus is not available. 6 years ago
Adam Honse 119741b736 Fix build on Windows 6 years ago
Adam Honse 2fe958783c Use select on accept call as well so that server closes on Linux 6 years ago
Adam Honse 9e44e4ba4f Add server information to user interface and provide buttons to start and stop server, change port 6 years ago
Adam Honse 81acc47cd6 Use std::thread for NetworkServer threads 6 years ago
Adam Honse 68fa3c2def Create functions for sending replies 6 years ago
Adam Honse 46339c5f86 More work on network support, need to implement spawning of one read thread for each client socket 6 years ago
Adam Honse 594f66ab23 Initial network files 6 years ago