1. 17 May, 2014 1 commit
  2. 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
  3. 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
  4. 16 Feb, 2010 1 commit
  5. 08 Dec, 2008 1 commit
  6. 04 Nov, 2008 1 commit
  7. 03 Nov, 2008 1 commit
  8. 28 Oct, 2008 1 commit
  9. 08 Oct, 2008 1 commit
  10. 07 Oct, 2008 1 commit
  11. 06 Oct, 2008 3 commits
  12. 30 Aug, 2007 1 commit
  13. 19 Jun, 2007 1 commit
  14. 30 Apr, 2007 1 commit
  15. 10 Feb, 2007 1 commit
  16. 05 Feb, 2007 1 commit
  17. 01 Feb, 2007 1 commit
  18. 11 Jan, 2007 1 commit