UDPv4TransportDescriptor.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #ifndef _FASTDDS_UDPV4_TRANSPORT_DESCRIPTOR
  15. #define _FASTDDS_UDPV4_TRANSPORT_DESCRIPTOR
  16. #include <fastdds/rtps/transport/UDPTransportDescriptor.h>
  17. namespace eprosima{
  18. namespace fastdds{
  19. namespace rtps{
  20. /**
  21. * Transport configuration
  22. *
  23. * - bufferSize: length of the buffers used for transmission. Passing
  24. * a buffer of different size will cause transmission to
  25. * fail.
  26. *
  27. * - interfaceWhiteList: Lists the allowed interfaces.
  28. * @ingroup TRANSPORT_MODULE
  29. */
  30. typedef struct UDPv4TransportDescriptor: public UDPTransportDescriptor
  31. {
  32. virtual ~UDPv4TransportDescriptor(){}
  33. virtual TransportInterface* create_transport() const override;
  34. RTPS_DllAPI UDPv4TransportDescriptor();
  35. RTPS_DllAPI UDPv4TransportDescriptor(const UDPv4TransportDescriptor& t);
  36. } UDPv4TransportDescriptor;
  37. } // namespace rtps
  38. } // namespace fastdds
  39. } // namespace eprosima
  40. #endif // _FASTDDS_UDPV4_TRANSPORT_DESCRIPTOR