I messed up the merge, so pushing it over to another repo so I don't lose it. Will tidy up and remove later
Dependencies: BufferedSerial FatFileSystemCpp mbed
Revision 77:6453dcc202d5, committed 2022-05-13
- Comitter:
- JamieB
- Date:
- Fri May 13 10:48:13 2022 +0000
- Parent:
- 76:c7c795b22f63
- Child:
- 78:8e1170e18a2d
- Commit message:
- v30 Added IP Priority flags (main socket only) and Tidy-Up Commit
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Feb 10 14:00:32 2022 +0000 +++ b/main.cpp Fri May 13 10:48:13 2022 +0000 @@ -1,4 +1,4 @@ -#define APP_VERSION 0.28 +#define APP_VERSION 0.30 /* Settings file options @@ -1012,6 +1012,14 @@ PrimaryDataSocket->init(); PrimaryDataSocket->set_broadcasting(true); PrimaryDataTarget.set_address(0xFFFFFFFF, UserSettings.DataOutPort); + int option = (1); + int tos_option = (IPTOS_LOWDELAY|IPTOS_THROUGHPUT|IPTOS_PREC_IMMEDIATE); +// PrimaryDataSocket->get_option(IPPROTO_IP, IP_TOS, &option, sizeof(option)) +// pc.printf("Socket IPTOS Option: %d\r\n", option); + PrimaryDataSocket->set_option(IPPROTO_IP, IP_TOS, &tos_option, sizeof(option)); +// PrimaryDataSocket->set_option(IPPROTO_TCP, TCP_NODELAY, &option, sizeof(option)); +// PrimaryDataSocket->set_option(SOL_SOCKET, SO_NO_CHECK, &option, sizeof(option)); + } if (VIPSSocket)