Commit Graph
503 Commits
Author SHA1 Message Date
Adam Honse f8fe1d29fb Add file headers to network files and some minor code cleanup 2020-05-09 15:47:51 -05:00
Adam Honse 42a9a9314d Fix crash when stopping server 2020-05-09 15:44:07 -05:00
Adam Honse 41d9a66c1c Clean up server page 2020-05-09 15:21:55 -05:00
Adam Honse 2437379506 Fix build on Windows 2020-05-08 23:23:25 -05:00
Adam Honse f95e210260 Send client string after server is connected 2020-05-08 22:25:46 -05:00
Adam Honse a5d37819d2 Add mutex on updating callbacks 2020-05-08 22:25:13 -05:00
Adam Honse 80917314df Send and receive client string 2020-05-08 22:07:34 -05:00
Adam Honse 3d25fa9451 Add callback to NetworkServer to handle UI updates when client information changes 2020-05-08 21:53:53 -05:00
Adam Honse 5c4e2ee00a Add IP field to client information and display client IP in the server tab's connected client list 2020-05-07 00:51:43 -05:00
Adam Honse 13b27fd966 Create a structure to hold client information in the network server and fix i2c hanging on destructor when bus is not available. 2020-05-06 23:57:54 -05:00
Adam Honse a41a22d5d6 Functions to set IP and port and start client 2020-05-06 13:44:37 -05:00
Adam Honse 56572beba9 Fix build on Windows 2020-05-02 00:29:22 -05:00
Adam Honse bbf98b2f72 Use select on accept call as well so that server closes on Linux 2020-05-02 00:23:55 -05:00
Adam Honse 0bba8539e4 Fix build on Linux 2020-05-01 23:05:10 -05:00
Adam Honse 4e00aac741 Add server information to user interface and provide buttons to start and stop server, change port 2020-05-01 22:38:45 -05:00
Adam Honse f3b20da6a3 Server info WIP 2020-05-01 15:29:15 -05:00
Adam Honse 7ae3ce651d Use condition variables and mutexes to eliminate sleeps from SMBus threading 2020-05-01 15:29:14 -05:00
Adam Honse 2307566dac Handle all SMBus controller activity on a separate thread to avoid corrupting the SMBus data 2020-05-01 15:29:14 -05:00
Adam Honse 6101d9d43e Use std::thread for NetworkClient threads 2020-05-01 15:29:14 -05:00
Adam Honse c2541d9585 Use std::thread for NetworkServer threads 2020-05-01 15:29:14 -05:00
Adam Honse 89cc9fc912 Fix thread conflicts for HyperX keyboard in Direct mode 2020-05-01 15:29:14 -05:00
Adam Honse 24a7940787 Disable I2C devices until threading issues are resolved, don't start a NetworkClient in main 2020-05-01 15:29:14 -05:00
Adam Honse 2aa33821dd Use TCP_NODELAY on client socket 2020-05-01 15:29:14 -05:00
Adam Honse 82232b4aef Add key matrix map for Corsair K70 keyboards 2020-05-01 15:29:14 -05:00
Adam Honse de13ca2cff Fix memory leaks in client 2020-05-01 15:29:14 -05:00
Adam Honse c45cf2466a Get network client working on Windows 2020-05-01 15:29:14 -05:00
Adam Honse f01aa31c3b Get network server working in Windows 2020-05-01 15:29:13 -05:00
Adam Honse c9f7fe8f3f Add matrix map for HyperX Alloy Elite 2020-05-01 15:29:13 -05:00
Adam Honse e7483e22a9 Add matrix map for Poseidon Z RGB keyboard 2020-05-01 15:29:13 -05:00
Adam Honse 438fc49127 Add matrix map support 2020-05-01 15:29:13 -05:00
Adam Honse f62851dbab Add zone types to HyperX and Poseidon Z RGB keyboard controllers 2020-05-01 15:29:13 -05:00
Adam Honse 5e3ad426e9 Add a thread to RGBController to asynchronously perform device updates. Only implemented for UpdateLEDs for now 2020-05-01 15:29:13 -05:00
Adam Honse 3622913291 Close server listener thread when read returns zero (client connection lost) 2020-05-01 15:29:13 -05:00
Adam Honse dd0edb3f84 Send color data over the network when calling color update functions 2020-05-01 15:29:13 -05:00
Adam Honse e1737fb971 Send mode data block when updating mode 2020-05-01 15:29:13 -05:00
Adam Honse 56df7d65b3 Implement RGBController_Network packet sending for current set of RGBController commands 2020-05-01 15:29:12 -05:00
Adam Honse 4eb926f8ef Client now requests list of all controllers from server and adds them to the master list 2020-05-01 15:29:12 -05:00
Adam Honse 8fc98a035b Create functions for sending replies 2020-05-01 15:29:12 -05:00
Adam Honse 5567db88f8 Create functions for sending requests 2020-05-01 15:29:12 -05:00
Adam Honse b96d160ce2 Client requests controller count and first controller data block from server, prints response 2020-05-01 15:29:12 -05:00
Adam Honse f44c6365c0 Run client from main 2020-05-01 15:29:12 -05:00
Adam Honse 94277e7d04 Start work on network client 2020-05-01 15:29:12 -05:00
Adam Honse 1d4393b5c4 Add RGBController function call packet functionality 2020-05-01 15:29:12 -05:00
Adam Honse fa015dd558 Implement requests for number of controllers and controller information block 2020-05-01 15:29:12 -05:00
Adam Honse 5c7359fa60 Network server can now receive packets properly 2020-05-01 15:29:12 -05:00
Adam Honse 4dbe14febe More work on network support, need to implement spawning of one read thread for each client socket 2020-05-01 15:29:12 -05:00
Adam Honse c8346e1f7c Start working on server request processing code 2020-05-01 15:29:11 -05:00
Adam Honse 095b9ce635 Initial network files 2020-05-01 15:29:11 -05:00
Adam Honse 2dc443ff1e Add 0x18A3 to Aura addressable PID list (Z390-F) 2020-05-01 15:28:49 -05:00
Adam Honse 0ab0586dfa Update OpenRazer-Win32 DLLs to openrazer commit 134d7bf 2020-05-01 13:41:42 -05:00