Commit Graph

43 Commits

Author SHA1 Message Date
iceman1001
c793363b4f pedantic fixes 2023-11-03 12:52:01 +01:00
wh201906
de7b6f35bc Clean up the code for timeout
Rename UART_TCP_CLIENT_RX_TIMEOUT_MS to UART_NET_CLIENT_RX_TIMEOUT_MS
Add UART_UDP_LOCAL_CLIENT_RX_TIMEOUT_MS for shorter timeout
Check if the target address is local in uart_open()
2023-10-25 23:45:23 +08:00
wh201906
56b4bda50d Add bind option for TCP 2023-10-23 13:56:16 +08:00
wh201906
15ef4f6768 Add bind option (UDP, Windows) 2023-10-23 13:30:27 +08:00
wh201906
225b1894f9 Add bind option (UDP, Linux) 2023-10-23 01:48:38 +08:00
iceman1001
0dc921c6b7 added the udpv6 and also try to identify when v6 is used (tcp/udp) 2023-10-20 12:51:12 +02:00
iceman1001
a35bfbb13e modified the CLI prompt to also show if TCP/UDP is used in the communication 2023-10-20 10:38:53 +02:00
iceman1001
1f3cf80898 style 2023-10-18 20:34:35 +02:00
wh201906
5e22ed25bc Add UDP support on Windows 2023-10-17 22:48:12 +08:00
wh201906
d9b5afbb92 Add IPv6 support for TCP (Windows) 2023-10-17 19:40:41 +08:00
wh201906
67d36152cc Add IPv6 support for UDP (Linux) 2023-10-17 18:40:17 +08:00
wh201906
2e0c24c8f2 Add IPv6 support for TCP (Linux) 2023-10-17 18:32:13 +08:00
wh201906
bd34794d26 Add error handling 2023-10-16 21:12:14 +08:00
wh201906
703a2c968a Faster uart_receive() in UDP mode
Added some functions for writing data to the ring buffer directly
Increased the size of ring buffer
2023-10-16 20:05:42 +08:00
wh201906
3df58f3a9e Clean up 2023-10-16 02:09:22 +08:00
wh201906
5775b53078 UDP support on Linux 2023-10-16 01:56:03 +08:00
wh201906
7aef669e59 Add ringbuffer
This is used in the UDP connection
2023-10-16 01:52:27 +08:00
iceman1001
fc6feea0d4 experimental UDP support. Doesnt quite work yet 2023-10-14 20:30:13 +02:00
wh201906
b74c5db4f9 Make communication timeout configurable 2023-07-05 22:44:59 +08:00
iceman1001
c7af716942 style 2023-06-21 18:49:12 +02:00
iceman1001
f17ce1fd68 revert one debug message 2023-05-28 12:40:57 +02:00
iceman1001
2b90683aff added debug output for usart comms 2023-05-28 12:34:29 +02:00
AloneLiberty
fae8ffda44 Fix formatting and run make style 2023-03-26 16:12:39 +03:00
wh201906
0f70df5de3 Add TCP connection support on Windows
The Windows Sockets 2 API is similar to the BSD Sockets API,
so I can reuse a lot of code in uart_posix.c
2023-03-06 19:55:41 +08:00
Doridian
83943aafc8 and done 2022-06-11 16:16:56 -07:00
iceman1001
fe9348768d use calloc instead 2022-01-09 00:33:33 +01:00
Philippe Teuwen
30aa7aa7d1 Adapting license headers, WIP 2022-01-08 00:40:52 +01:00
iceman1001
dd08c69f7e cleaner 2021-12-22 21:09:28 +01:00
Philippe Teuwen
88308ea727 typos 2021-10-10 01:35:45 +02:00
Philippe Teuwen
bae5362656 rename typedef structs 2021-08-21 21:41:34 +02:00
Philippe Teuwen
6a2f2b3979 rename global conn 2021-08-21 20:21:08 +02:00
iceman1001
4c845fb859 endless happiness 2021-03-05 10:18:34 +01:00
iceman1001
32452dec4b no printf 2020-08-29 14:29:07 +02:00
Philippe Teuwen
447105511a less global vars 2020-06-02 00:51:42 +02:00
iceman1001
e444640068 printandlogex 2020-05-14 16:59:02 +02:00
Philippe Teuwen
eafeb47126 make style 2020-05-06 13:38:51 +02:00
iceman1001
796cd36f85 chg: better error message when serial port allocation fails 2020-05-02 19:24:52 +02:00
iceman1001
96f03b4933 chg: leanient parsing of tcp:/bt:/socket: vars 2020-05-02 17:52:22 +01:00
Philippe Teuwen
7ca7677568 Linux: add native support for Bluetooth in client 2020-04-29 14:26:12 +02:00
iceman1001
5e51a72cae coverity fix 286678 - resource leak 2020-04-26 14:13:12 +02:00
iceman1001
2e2bfc17a0 coverity fix: 286678 2020-04-26 13:54:55 +02:00
iceman1001
b0854bb3aa chg: SOCKET: connections (@xianling1998) 2020-04-16 16:46:45 +02:00
Bjoern Kerler
81bc0bc2b9 Reorder client src directories 2020-04-16 10:53:24 +02:00