Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeRTOS-Plus-TCP port #239

Merged
merged 41 commits into from
Oct 30, 2023
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3d954cd
FreeRTOS-Plus-TCP port: system and UDP unicast
bjsowa Aug 12, 2023
2d9ed40
Fix clock_elapsed_s method
bjsowa Aug 13, 2023
d3e8cc1
Avoid double free
bjsowa Aug 14, 2023
f949eb3
Add TCP transport
bjsowa Aug 14, 2023
8e2d99d
Fix build when only TCP is enabled
bjsowa Aug 14, 2023
ba1c4c0
Initial FreeRTOS-Plus-TCP example
bjsowa Aug 25, 2023
d502492
Initial CI workflow
bjsowa Aug 25, 2023
c8c8b3d
Fix newline character in printf
bjsowa Aug 28, 2023
b86ce98
Fix network driver checksum options
bjsowa Aug 28, 2023
46bde55
Fix printf newline
bjsowa Aug 28, 2023
6314ac9
Make vAppTask static
bjsowa Aug 28, 2023
649fed5
Resolve MAC address of gateway before running Zenoh app
bjsowa Aug 28, 2023
c7cb1ef
Set zenoh debug level
bjsowa Aug 28, 2023
9965500
Increase socket timeout
bjsowa Aug 28, 2023
98be97f
Fix segfault when failed to create endpoint
bjsowa Aug 28, 2023
28fe14f
Fix warning about overflow in int conversion when using 64-bit system
bjsowa Aug 28, 2023
1390425
Use ai_family returned by getaddrinfo
bjsowa Aug 28, 2023
933324f
Fix tcp and udp read methods
bjsowa Aug 28, 2023
8633333
Retain original contributor in z_pub example
bjsowa Aug 28, 2023
1c0d0b3
Add z_scout example
bjsowa Aug 28, 2023
663724b
Base the z_pub example on unix example
bjsowa Aug 28, 2023
fe5d30e
Add more examples
bjsowa Aug 28, 2023
1581f37
Change FreeRTOS-Plus-TCP repository
bjsowa Aug 29, 2023
66e5d1c
Fix building in Release mode
bjsowa Aug 29, 2023
7fc8da0
Multi-threading initial
bjsowa Aug 29, 2023
841924c
Mark UDP Multicast as unsupported
bjsowa Aug 29, 2023
8148874
Fix _z_task_free
bjsowa Aug 29, 2023
070b5a6
Use multi-threading in examples
bjsowa Aug 29, 2023
daa800d
Add sleep to z_sub example
bjsowa Aug 29, 2023
424421d
Allow passing task attributes to read and lease tasks
bjsowa Aug 29, 2023
62556f9
Use static tasks in z_pub example
bjsowa Aug 29, 2023
a364a6e
Remove redundant print
bjsowa Aug 29, 2023
683a4d8
Add more examples
bjsowa Aug 29, 2023
5d92775
Change char* to const char*
bjsowa Aug 30, 2023
63c089b
Update license headers
bjsowa Aug 30, 2023
2291ddd
Update README
bjsowa Aug 30, 2023
a547d02
Merge branch 'master' into freertos
bjsowa Sep 21, 2023
4e81de9
Fix config keys
bjsowa Sep 21, 2023
d6d757f
Fix fprintzid
bjsowa Sep 21, 2023
376ed99
Ignore freertos_plus_tcp port sources when using PlatformIO
bjsowa Sep 21, 2023
7f9c2cf
Merge remote-tracking branch 'zenoh/master' into freertos
bjsowa Oct 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use ai_family returned by getaddrinfo
Signed-off-by: Błażej Sowa <[email protected]>
bjsowa committed Aug 28, 2023

Verified

This commit was signed with the committer’s verified signature.
btjanaka Bryon Tjanaka
commit 1390425a9399fb792359aef92d84b7d9f69329a9
4 changes: 2 additions & 2 deletions src/system/freertos_plus_tcp/network.c
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ int8_t _z_create_endpoint_tcp(_z_sys_net_endpoint_t *ep, const char *s_address,
return ret;
}

ep->_iptcp->ai_addr->sin_family = FREERTOS_AF_INET4;
ep->_iptcp->ai_addr->sin_family = ep->_iptcp->ai_family;

// Parse and check the validity of the port
uint32_t port = strtoul(s_port, NULL, 10);
@@ -107,7 +107,7 @@ int8_t _z_create_endpoint_udp(_z_sys_net_endpoint_t *ep, const char *s_address,
return ret;
}

ep->_iptcp->ai_addr->sin_family = FREERTOS_AF_INET4;
ep->_iptcp->ai_addr->sin_family = ep->_iptcp->ai_family;

// Parse and check the validity of the port
uint32_t port = strtoul(s_port, NULL, 10);