1. 02 Jul, 2019 1 commit
    • Olivier Crête's avatar
      agent: add nice_agent_get_sockets API · 875a23a7
      Olivier Crête authored
      This API makes it possible to get an array of all of the sockets used
      by a specific component, this is useful to set options on the socket.
      Also bump GLib requirement to 2.54, which is the version in RHEL 7
  2. 09 May, 2019 1 commit
  3. 08 Mar, 2019 2 commits
    • Jakub Adam's avatar
      agent: trickle ICE mode · a6112cec
      Jakub Adam authored
      In this mode, activated by setting "ice-trickle" property of a
      NiceAgent to TRUE, a component without a successful connectivity check
      will wait indefinitely for more remote candidates to come.
      nice_agent_peer_candidate_gathering_done() must be called after
      receiving the last remote candidate for the component to finally change
    • Jakub Adam's avatar
      libnice.sym: export nice_agent_new_full · 1dbecae3
      Jakub Adam authored
      Forgotten to add in 0.1.15 release?
  4. 14 Jan, 2019 1 commit
    • Jakub Adam's avatar
      meson: unify exported symbol versions with autotools · 1ff4d53d
      Jakub Adam authored
      libnice.so created by autotools has its symbols bound to the default
      'Base' version node, whereas Meson build arbitrarily introduced a
      version node named 'libnice'. This breaks tools like dpkg-gensymbols
      that track changes in exported symbols through several releases of the
      Remove 'libnice' version and revert back to using unspecified version.
  5. 02 Jan, 2019 1 commit
  6. 27 Dec, 2018 2 commits
  7. 23 Dec, 2018 1 commit
    • Tim-Philipp Müller's avatar
      meson: Allow building of g-i with static libs. · 94a78215
      Tim-Philipp Müller authored
      Allow building of g-i with static libs which should
      work since Meson 0.49 and sufficiently recent
      gobject-introspection (>= 1.58.1). If g-i is too
      old people will get a suitable error message and
      can disable g-i via build options.
  8. 21 Dec, 2018 2 commits
    • Jakub Adam's avatar
      meson: Fix pkg-config generation with internal dependencies · ff75be1b
      Jakub Adam authored
      Prevents Meson error:
      ERROR:  requires argument not a string, library with pkgconfig-generated
      file or pkgconfig-dependency object, got <InternalDependency null: True>
      Requires Meson 0.49.
    • Jakub Adam's avatar
      meson: Fix build with fallback glib · 17272759
      Jakub Adam authored
      When building libnice with glib fallback, its 'libgio_dep' internal
      dependency doesn't provide all needed include and library search paths.
      To avoid unresolved header files and linker errors in such case,
      'libglib_dep', 'libmodule_dep' and 'libgobject_dep' from glib submodule
      must be pulled in as well.
      The problem should be fixed in GLib 2.60.
  9. 18 Dec, 2018 1 commit
  10. 14 Dec, 2018 4 commits
  11. 11 Apr, 2017 1 commit
  12. 03 Apr, 2017 1 commit
  13. 31 Mar, 2017 1 commit
  14. 03 Jun, 2016 1 commit
  15. 14 Apr, 2015 1 commit
  16. 09 Oct, 2014 1 commit
  17. 08 Oct, 2014 1 commit
  18. 07 Jul, 2014 2 commits
  19. 17 May, 2014 1 commit
  20. 25 Apr, 2014 2 commits
  21. 23 Apr, 2014 1 commit
  22. 31 Jan, 2014 8 commits
    • Olivier Crête's avatar
      agent: Replace nice_agent_build_io_stream() with nice_agent_get_io_stream() · 430e8db5
      Olivier Crête authored
      Also made the GIOStream into a singleton, it always returns the same one.
      Also make it impossible to create a GIOStream for a non-existing stream/component
    • Philip Withnall's avatar
      agent: Add support for vectored I/O for sends · f7b15f14
      Philip Withnall authored
      Add one new public function, nice_agent_send_messages_nonblocking(),
      which replaces nice_agent_send_full(). This isn’t an API break, because
      nice_agent_send_full() hasn’t been in a release yet. The new API allows
      sending multiple messages in a single call, and supports vectors of
      buffers to transmit the messages from.
      The existing nice_agent_send() API has been left untouched, although
      it’s a bit of a bugbear because it’s non-blocking and doesn’t fit with
      the new *_nonblocking() naming scheme. Oh well.
      This doesn’t bring any notable changes to the number of memcpy()s on the
      critical path: it remains at zero for the common cases and common socket
      types. It introduces the possibility for future work to eliminate some
      memcpy()s in more complex socket types, like tcp-turn and tcp-bsd, but
      these optimisations have not been made yet. FIXME comments have been
      This includes modifications to the test-send-recv unit test to cover the
      new API.
    • Philip Withnall's avatar
      agent: Add support for vectored I/O for receives · 253be348
      Philip Withnall authored
      Add two new public functions:
       • nice_agent_recv_messages()
       • nice_agent_recv_messages_nonblocking()
      which allow receiving multiple messages in a single call, and support
      vectors of buffers to receive the messages into.
      The existing nice_agent_recv[_nonblocking]() APIs have been left
      This tidies up a lot of the message handling code internally, and
      eliminates a couple of memcpy()s. There are still a few more memcpy()s
      on the critical path, which could be eliminated with further work.
      In the reliable agent case, every message is memcpy()ed twice: once into
      the pseudo-TCP receive buffer, and once out of it. The copy on input
      could be eliminated (in the case of in-order delivery of packets) by
      receiving directly into the receive buffer. The copy on output can’t be
      eliminated except in the I/O callback case (when
      nice_agent_attach_recv() has been used), in which case the callback
      could be invoked with a pointer directly into the pseudo-TCP receive
      In the non-reliable agent case, zero memcpy()s are used.
      A couple of the more complex socket implementations (TURN and HTTP) have
      slow paths during setup, and partially also during normal use. These
      could be optimised further, and FIXME comments have been added.
    • Olivier Crête's avatar
    • Philip Withnall's avatar
      agent: Add a nice_agent_recv_nonblocking() function · 6d3a32a0
      Philip Withnall authored
      This is a non-blocking variant of nice_agent_recv(), and will be used
      internally by the GPollableInputStream implementation. External
      implementations may use it as well.
      It reserves the right to iterate the main context, but doesn’t currently
      do so.
    • Philip Withnall's avatar
      agent: Add support for GIO-style I/O streams · 949f979a
      Philip Withnall authored
      This adds three new classes:
       • NiceIOStream
       • NiceInputStream
       • NiceOutputStream
      which allow wrapping a single stream/component pair in an I/O stream
      which can be used with the standard GIO functions.
      The streams are constructed as wrappers around a NiceAgent, with changes
      to the NiceAgent’s properties affecting all instantiated streams.
      Streams are only supported for reliable connections.
      If the NiceAgent stream which underlies a NiceInputStream,
      NiceOutputStream or NiceIOStream is removed, the I/O stream is marked as
      This is based on work originally done by Youness Alaoui
    • Philip Withnall's avatar
      agent: Add a nice_agent_send_full() API exposing error information · 5d63de5a
      Philip Withnall authored
      This adds GError and GCancellable parameters to the existing
      nice_agent_send() API, and is identical in all other respects (notably,
      it is non-blocking).
      The GCancellable is currently unused, but could be used in future if the
      API grows to support blocking writes.
      The GError is used to return more interesting error codes than just
    • Philip Withnall's avatar
      agent: Add nice_agent_recv() allowing blocking receives on sockets · 243c47ec
      Philip Withnall authored
      This is a blocking receive function, designed to be called from a worker
      thread. It cannot be used in conjunction with the existing
      nice_agent_attach_recv() API, as the blocking receive and the GSource
      would compete over access to the single copy of the data in the kernel’s
      receive buffer.
  23. 27 Dec, 2013 1 commit
  24. 20 Nov, 2013 1 commit
  25. 29 Oct, 2013 1 commit