global.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * Copyright (c) 2020-2021 Paul-Louis Ageneau
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef RTC_GLOBAL_H
  19. #define RTC_GLOBAL_H
  20. #include "common.hpp"
  21. #include <chrono>
  22. namespace rtc {
  23. RTC_EXPORT void Preload();
  24. RTC_EXPORT void Cleanup();
  25. struct SctpSettings {
  26. optional<size_t> recvBufferSize;
  27. optional<size_t> sendBufferSize;
  28. optional<size_t> maxChunksOnQueue;
  29. optional<size_t> initialCongestionWindow;
  30. optional<unsigned int> congestionControlModule;
  31. optional<std::chrono::milliseconds> delayedSackTime;
  32. };
  33. RTC_EXPORT void SetSctpSettings(SctpSettings s);
  34. } // namespace rtc
  35. #endif