Commit Graph

21 Commits

Author SHA1 Message Date
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
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
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
c2541d9585 Use std::thread for NetworkServer threads 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
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
8fc98a035b Create functions for sending replies 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
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