1. 18 Jun, 2018 1 commit
    • Nicolas Dufresne's avatar
      Fix queue_clear replaced by queue_free error · 3770519e
      Nicolas Dufresne authored
      There was two cases where instead of freeing the queue, we actually
      clear the queue so it's ready for reused. Notably in
      nice_socket_free_send_queue(), a missed name function and nicesrc
      element state change.
      
      This regression was introduced by: fa783b1dd727a6ee2b99a111ca24790ae850c2f7
      3770519e
  2. 12 Jun, 2018 1 commit
    • Nicolas Dufresne's avatar
      Fix cast-function-type warning introduced in GCC 8 · 23b59268
      Nicolas Dufresne authored
      This is new warning introduced with GCC 8. This is being fixed by using appropriate function, like g_queue_free_full/g_list_free_full or by casting to GCallback before casting to the target function signature.
      
      Closes: #46
      23b59268
  3. 04 Apr, 2016 2 commits
  4. 11 Sep, 2015 1 commit
  5. 17 May, 2014 1 commit
  6. 15 May, 2014 3 commits
    • Youness Alaoui's avatar
    • Youness Alaoui's avatar
      Factor out the add_to_be_sent into a helper API for sockets · cdb7cad9
      Youness Alaoui authored
      The add_to_be_sent was duplicated in http/socks5/pseudossl/tcp-bsd and
      had some small differences. It's better to factor it out so bug fixes
      get applied to all of them and code is cleaner.
      cdb7cad9
    • Youness Alaoui's avatar
      Add a nice_socket_send_reliable API for internal use. · 535701b0
      Youness Alaoui authored
      One issue with tcp-bsd is that it will queue messages when the tcp socket
      is not writable, but it will also drop messages when the queue is full.
      If we want to do proper reliable ice-tcp, we need to make sure that
      messages don't get dropped, also, this would affect http/socks5/pseudossl
      if their messages get dropped. For ice-tcp, when the socket is not writable
      we want to return 0, not queue the message.
      The change here is to allow connchecks and other important protocol messages
      to be sent as 'reliable' on tcp transports by queuing them and in the various
      socket layers and to never drop them, but all user messages will be dropped.
      
      if the tcp socket is not writable.
      535701b0
  7. 31 Jan, 2014 4 commits
    • Olivier Crête's avatar
      Remove the "length" parameter from NiceOutputMessage · 4f456a46
      Olivier Crête authored
      It was used correctly only half the time anyway
      4f456a46
    • Olivier Crête's avatar
      Remove the "to" parameter from NiceOutputMessage · 5c235a86
      Olivier Crête authored
      We never send multiple messages to separate targets in practice, so
      this will simplify the code
      5c235a86
    • Philip Withnall's avatar
      socket: Add vectored I/O support for sending on sockets · 515481e6
      Philip Withnall authored
      Replace the send() API with a send_messages() API, which supports
      sending multiple messages, each with multiple buffers rather than a
      single monolithic buffer.
      
      This doesn’t break API, as the socket API is not exposed outside
      libnice. It does introduce a new struct: NiceOutputMessage, which is
      analogous to struct mmsghdr and NiceInputMessage.
      
      This includes updates to the test-bsd test to cover the changed API.
      
      The existing nice_socket_send() API has been retained as a thin wrapper
      around nice_socket_send_messages(), for convenience only. It’s hoped
      that internal usage of this API will decline to the point where it can
      be removed.
      515481e6
    • Philip Withnall's avatar
      socket: Add vectored I/O support for receiving on sockets · dfab04cd
      Philip Withnall authored
      Replace the recv() API with a recv_messages() API, which supports
      receiving multiple messages, each with multiple buffers rather than a
      single monolithic buffer.
      
      This doesn’t break API, as the socket API is not exposed outside
      libnice. It does introduce a new struct: NiceInputMessage, which is
      analogous to struct mmsghdr.
      
      This includes updates to the test-bsd test to cover the changed API.
      dfab04cd
  8. 16 Feb, 2010 1 commit
  9. 08 Dec, 2008 1 commit
  10. 04 Nov, 2008 1 commit
  11. 03 Nov, 2008 1 commit
  12. 28 Oct, 2008 1 commit
  13. 08 Oct, 2008 1 commit
  14. 07 Oct, 2008 1 commit
  15. 06 Oct, 2008 3 commits
  16. 30 Aug, 2007 1 commit
  17. 19 Jun, 2007 1 commit
  18. 30 Apr, 2007 1 commit
  19. 10 Feb, 2007 1 commit
  20. 05 Feb, 2007 1 commit
  21. 01 Feb, 2007 1 commit
  22. 11 Jan, 2007 1 commit