-
Notifications
You must be signed in to change notification settings - Fork 84
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
Allow external TCP/UDP support for udp_transport_datagram_internal
#159
Comments
Hi @driftregion, Yes, it could be a short-term solution, but I think a more appropriate way is to handle FreeRTOS platform similar to nuttx or LwIP. For this purpose the following changes are required:
You can purpose the short-term solution by a PR and we will create an issue in order to put in the roadmap the long-term solution. |
Got it, thanks @Julibert |
@Julibert, I'm attempting the long-term solution. I find that the FreeRTOS-Plus-TCP headers depend on FreeRTOS.h, which in turn depends on a slew of port-specific headers. Since this is a cross build (these aren't system headers), I think we need a mechanism for passing a set of include paths to microxrcedds_client when building it. I'm currently doing this by including the following in
where
This is my current working approach. I'm new to CMake. Is there a neater way of doing this dependency injection? |
@driftregion Hi! Thank you for your interest in Micro XRCE-DDS. Notice that we’ll discuss the recent contributions and developments in the next Embedded WG meeting. You’re invited to bring your Micro XRCE-DDS related issue to this platform. We’ll be very happy to have you join us and discuss your questions with the community. |
Hello,
I'm building for a FreeRTOS-based platform using FreeRTOS-Plus-TCP. Its socket API lacks the functions and structs defined in linux's
<sys/socket.h>
.My toolchain file contains:
I'm able to make use of the sensible defaults for UDP and TCP defined in
udp
/tcp_transport_internal.h
for the transport functionality. I'm compiling Micro-XRCE-DDS-Client as a static library. The implementations of the stubbed functions (using FreeRTOS-Plus-TCP) are inside my application code. All is well at link time.I can't do the same thing for
udp_transport_datagram_internal.h
, because it definesuxrUDPTransportDatagram
such that there's no means for extensionI propose something like this:
The text was updated successfully, but these errors were encountered: