platform/upstream/libnice.git
10 years agoagent: Add API to retrieve the selected GSocket
Bryce Allen [Wed, 20 Nov 2013 21:46:06 +0000 (16:46 -0500)]
agent: Add API to retrieve the selected GSocket

This should be used only when the protocol has it's own keepalive mechanism

10 years agoagent: Getting the local candidates returns a copy, fix the doc
Olivier Crête [Wed, 30 Oct 2013 13:45:55 +0000 (09:45 -0400)]
agent: Getting the local candidates returns a copy, fix the doc

10 years agoAdd special case to make it compile on Solaris
Tim Mooney [Tue, 29 Oct 2013 16:52:12 +0000 (16:52 +0000)]
Add special case to make it compile on Solaris

10 years agoSilence aclocal warning by changing the order of the macros
Olivier Crête [Tue, 29 Oct 2013 16:51:13 +0000 (16:51 +0000)]
Silence aclocal warning by changing the order of the macros

10 years agobuild: Add GUPnP libraries to Libs.private in pkg-config file
Philip Withnall [Mon, 28 Oct 2013 17:53:29 +0000 (17:53 +0000)]
build: Add GUPnP libraries to Libs.private in pkg-config file

They’re private dependencies which are needed on the linker command line when
linking statically against libnice.

https://bugs.freedesktop.org/show_bug.cgi?id=70965

10 years agobuild: Update configure.ac according to autoupdate
Philip Withnall [Mon, 28 Oct 2013 13:33:57 +0000 (13:33 +0000)]
build: Update configure.ac according to autoupdate

https://bugs.freedesktop.org/show_bug.cgi?id=70965

10 years agobuild: Add AM_PROG_AR to configure.ac
Philip Withnall [Mon, 28 Oct 2013 13:30:26 +0000 (13:30 +0000)]
build: Add AM_PROG_AR to configure.ac

This shuts up an automake warning about needing it when using a non-POSIX
archiver.

https://bugs.freedesktop.org/show_bug.cgi?id=70965

10 years agobuild: Add ‘-I m4’ to ACLOCAL_AMFLAGS
Philip Withnall [Mon, 28 Oct 2013 13:29:52 +0000 (13:29 +0000)]
build: Add ‘-I m4’ to ACLOCAL_AMFLAGS

This shuts up an automake warning and ensures that in-tree m4 macros are found
by aclocal.

https://bugs.freedesktop.org/show_bug.cgi?id=70965

11 years agoautogen.sh: Honor NOCONFIGURE=1
Colin Walters [Wed, 4 Sep 2013 13:12:33 +0000 (09:12 -0400)]
autogen.sh: Honor NOCONFIGURE=1

This is adapted from telepathy-logger's autogen.sh.  See
http://people.gnome.org/~walters/docs/build-api.txt
for rationale behind NOCONFIGURE=1.

11 years agoFix unitialized variable in nice_agent_parse_remote_candidate_sdp
Thammi [Fri, 19 Jul 2013 17:10:21 +0000 (19:10 +0200)]
Fix unitialized variable in nice_agent_parse_remote_candidate_sdp

11 years agoRefresh TURN CreatePermission at receiving data in case TURN path is asymetrical.
Livio Madaro [Wed, 3 Apr 2013 12:53:39 +0000 (14:53 +0200)]
Refresh TURN CreatePermission at receiving data in case TURN path is asymetrical.

11 years agoSet the minimum GLib version to 2.30 to disable deprecated warnings on newer GLib...
Rohan Garg [Fri, 22 Mar 2013 05:53:31 +0000 (11:23 +0530)]
Set the minimum GLib version to 2.30 to disable deprecated warnings on newer GLib versions and make sure the maximum allowed GLib version is 2.32

Also actually require 2.30

11 years agoOpen socket with random port. Use random port to avoid TURN error 437 Allocation...
Livio Madaro [Thu, 7 Mar 2013 16:46:34 +0000 (17:46 +0100)]
Open socket with random port. Use random port to avoid TURN error 437 Allocation Mismatch

11 years agowin32: Add new 0.1.4 symbols to the win32 .def file as well
Youness Alaoui [Wed, 20 Mar 2013 19:43:51 +0000 (15:43 -0400)]
win32: Add new 0.1.4 symbols to the win32 .def file as well

11 years agoversion 0.1.4.1
Youness Alaoui [Sat, 23 Feb 2013 00:56:51 +0000 (19:56 -0500)]
version 0.1.4.1

11 years agoVersion 0.1.4 0.1.4
Youness Alaoui [Sat, 23 Feb 2013 00:28:44 +0000 (19:28 -0500)]
Version 0.1.4

11 years agoFix documentation
Youness Alaoui [Sat, 23 Feb 2013 00:28:27 +0000 (19:28 -0500)]
Fix documentation

11 years agoAdd build instructions to the README
Youness Alaoui [Sat, 23 Feb 2013 00:05:47 +0000 (19:05 -0500)]
Add build instructions to the README

11 years agoRemove debugging print
Youness Alaoui [Fri, 22 Feb 2013 23:54:18 +0000 (18:54 -0500)]
Remove debugging print

11 years agoexamples: Make input non blocking to allow exit when remote hangs up
Youness Alaoui [Thu, 7 Feb 2013 01:27:32 +0000 (20:27 -0500)]
examples: Make input non blocking to allow exit when remote hangs up

11 years agoDo not unref the mainloop until the thread has joined since it could be still using it
Youness Alaoui [Thu, 7 Feb 2013 00:44:02 +0000 (19:44 -0500)]
Do not unref the mainloop until the thread has joined since it could be still using it

11 years agoExport the new nice_agent_get_selected_pair API
Youness Alaoui [Thu, 7 Feb 2013 00:41:38 +0000 (19:41 -0500)]
Export the new nice_agent_get_selected_pair API

11 years agoDo not unref the GThread since g_thread_join takes the reference. Also rename the...
Bryce Allen [Thu, 7 Feb 2013 00:40:59 +0000 (19:40 -0500)]
Do not unref the GThread since g_thread_join takes the reference. Also rename the variable.

11 years agoChange the m= line in the SDP to use ICE/SDP dummy type instead of RTP/AVP
Youness Alaoui [Tue, 5 Feb 2013 23:28:39 +0000 (18:28 -0500)]
Change the m= line in the SDP to use ICE/SDP dummy type instead of RTP/AVP

11 years agoAdd new parsing API, for stream and candidates
Youness Alaoui [Tue, 5 Feb 2013 23:21:39 +0000 (18:21 -0500)]
Add new parsing API, for stream and candidates

11 years agoAdd example that uses the new SDP parsing API
Youness Alaoui [Tue, 5 Feb 2013 04:21:55 +0000 (23:21 -0500)]
Add example that uses the new SDP parsing API

11 years agoAdding new SDP parsing and generation API.
Youness Alaoui [Tue, 5 Feb 2013 04:15:00 +0000 (23:15 -0500)]
Adding new SDP parsing and generation API.
This adds nice_agent_set_stream_name, nice_agent_get_stream_name,
nice_agent_generate_local_sdp, nice_agent_parse_remote_sdp.

11 years agoFix/clean threaded-example
Youness Alaoui [Tue, 5 Feb 2013 03:14:06 +0000 (22:14 -0500)]
Fix/clean threaded-example

11 years agoRefactor nice_agent_set_stream_tos to use agent_find_stream internal API
Youness Alaoui [Tue, 5 Feb 2013 03:00:02 +0000 (22:00 -0500)]
Refactor nice_agent_set_stream_tos to use agent_find_stream internal API

11 years agoAdd a similar simple example using threads
Youness Alaoui [Tue, 5 Feb 2013 01:37:54 +0000 (20:37 -0500)]
Add a similar simple example using threads

11 years agoexample: Exit on Ctrl-D and send EOS signal to the other end
Youness Alaoui [Tue, 5 Feb 2013 01:07:14 +0000 (20:07 -0500)]
example: Exit on Ctrl-D and send EOS signal to the other end

11 years agoChange license for simple-example
Youness Alaoui [Mon, 4 Feb 2013 23:42:38 +0000 (18:42 -0500)]
Change license for simple-example

11 years agoAdd a simple example to showcase the API thanks to Bryce Allen
Youness Alaoui [Sat, 2 Feb 2013 00:22:08 +0000 (19:22 -0500)]
Add a simple example to showcase the API thanks to Bryce Allen

11 years agoCleanup documentation
Youness Alaoui [Sat, 2 Feb 2013 00:19:23 +0000 (19:19 -0500)]
Cleanup documentation

11 years agoAdd nice_agent_get_selected_pair API to NiceAgent
Youness Alaoui [Sat, 2 Feb 2013 00:18:39 +0000 (19:18 -0500)]
Add nice_agent_get_selected_pair API to NiceAgent

11 years agoAdd nice_address_ip_version API to NiceAddress
Youness Alaoui [Sat, 2 Feb 2013 00:17:59 +0000 (19:17 -0500)]
Add nice_address_ip_version API to NiceAddress

11 years agoFix username validation in OC2007 mode
Jakub Adam [Thu, 6 Dec 2012 21:03:08 +0000 (22:03 +0100)]
Fix username validation in OC2007 mode

Wrong 'inbound' argument was passed into priv_validate_username()

11 years agoAdd win32 directory to EXTRA_DIST
Youness Alaoui [Thu, 6 Dec 2012 21:48:00 +0000 (16:48 -0500)]
Add win32 directory to EXTRA_DIST

11 years agoAdd nice_agent_set_port_range to the list of exported API functions
Youness Alaoui [Mon, 3 Dec 2012 17:45:01 +0000 (12:45 -0500)]
Add nice_agent_set_port_range to the list of exported API functions

11 years agoManage multiple TURN CreatePermission in parallel
Livio Madaro [Mon, 19 Nov 2012 23:18:49 +0000 (18:18 -0500)]
Manage multiple TURN CreatePermission in parallel

12 years agoagent: display NiceComponentState as strings in debug message
Guillaume Desmottes [Fri, 27 Apr 2012 12:36:03 +0000 (14:36 +0200)]
agent: display NiceComponentState as strings in debug message

https://bugs.freedesktop.org/show_bug.cgi?id=49219

12 years agoFix C preprocessor bug
Askar Safin [Mon, 1 Oct 2012 18:36:41 +0000 (14:36 -0400)]
Fix C preprocessor bug

12 years agoFix a minor bug in the dribble mode test
Rohan Garg [Wed, 19 Sep 2012 21:14:54 +0000 (02:44 +0530)]
Fix a minor bug in the dribble mode test

If for some reason the opening of the socket is delayed, or simply takes
too much time, the test will fail. This patch ensures that the test will
only proceed once the socket is open.

12 years agoversion 0.1.3.1
Olivier Crête [Fri, 14 Sep 2012 16:54:01 +0000 (12:54 -0400)]
version 0.1.3.1

12 years agoversion 0.1.3 0.1.3
Olivier Crête [Fri, 14 Sep 2012 01:31:18 +0000 (21:31 -0400)]
version 0.1.3

12 years agoCompile the plugin for both GStreamer 0.10 and 1.0
Olivier Crête [Fri, 14 Sep 2012 01:26:29 +0000 (21:26 -0400)]
Compile the plugin for both GStreamer 0.10 and 1.0

Revert this patch to drop GStreamer 0.10 support

12 years agonicesrc: Use gst_buffer_fill
Olivier Crête [Fri, 14 Sep 2012 01:25:42 +0000 (21:25 -0400)]
nicesrc: Use gst_buffer_fill

12 years agoThe plugin name is not a string anymore
Olivier Crête [Tue, 7 Aug 2012 00:28:15 +0000 (17:28 -0700)]
The plugin name is not a string anymore

12 years agoCheck gstreamer 1.0 not 0.11
Sjoerd Simons [Sun, 29 Jul 2012 16:33:33 +0000 (18:33 +0200)]
Check gstreamer 1.0 not 0.11

12 years agoGST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
Sjoerd Simons [Sun, 29 Jul 2012 16:31:37 +0000 (18:31 +0200)]
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING

12 years agoUse GstPushSrc as a base class
Olivier Crête [Fri, 27 Jan 2012 17:55:09 +0000 (18:55 +0100)]
Use GstPushSrc as a base class

12 years agoPort GStreamer src/sink to 0.11
Olivier Crête [Fri, 27 Jan 2012 17:54:31 +0000 (18:54 +0100)]
Port GStreamer src/sink to 0.11

12 years agoFix gaddr initialization
Livio Madaro [Fri, 3 Aug 2012 13:17:08 +0000 (15:17 +0200)]
Fix gaddr initialization

12 years agoOnly define _FORTIFY_SOURCE if optimisation is enabled
Olivier Crête [Wed, 6 Jun 2012 20:50:39 +0000 (16:50 -0400)]
Only define _FORTIFY_SOURCE if optimisation is enabled

12 years agoMerge remote-tracking branch 'shadeslayer/dribble_mode'
Youness Alaoui [Mon, 16 Jul 2012 19:44:42 +0000 (15:44 -0400)]
Merge remote-tracking branch 'shadeslayer/dribble_mode'

12 years agoAlso free the GCond and the GMutex
Rohan Garg [Fri, 29 Jun 2012 19:33:34 +0000 (01:03 +0530)]
Also free the GCond and the GMutex

12 years agoAllocate memory to stun_mutex_ptr and stun_signal_ptr
Rohan Garg [Thu, 21 Jun 2012 19:22:44 +0000 (00:52 +0530)]
Allocate memory to stun_mutex_ptr and stun_signal_ptr

12 years agoCache GSocketAddress in UdpBsdSocket
Olivier Crête [Tue, 29 May 2012 01:02:31 +0000 (21:02 -0400)]
Cache GSocketAddress in UdpBsdSocket

Creating a GSocketAddress takes a measurable amount of time, so let's cache it
as it doesn't change once a socket is created.

12 years agoMultiple fixes for new test
Rohan Garg [Mon, 7 May 2012 18:31:48 +0000 (00:01 +0530)]
Multiple fixes for new test

* Make STUN thread drop STUN packets using a global variable
* Completely refactor the way the STUN thread exits
  - Now exit by setting exit_stun_thread as TRUE and sending
    dummy data
  - Remove the old signal mechanism
* Don't set unnecessary socket options
* Lock stun_mutex_ptr before signalling STUN response

12 years agoFixes to dribble mode test as per suggestions
Rohan Garg [Thu, 3 May 2012 20:53:21 +0000 (02:23 +0530)]
Fixes to dribble mode test as per suggestions

- Use LEFT_AGENT and RIGHT_AGENT instead of calling GINT_TO_POINTER everytime
- Add padding (0's in our case) before the actual payload and make sure the
  reciever checks for this padding. This ensures no STUN packets got through
- Free GSList's properly in cb_agent_new_candidate
- Use proper calls to g_signal_handlers_disconnect_by_func

12 years agoMinor bug fixes and enhancements to the test
Rohan Garg [Thu, 3 May 2012 17:47:20 +0000 (23:17 +0530)]
Minor bug fixes and enhancements to the test

12 years agoUpdate .gitignore for new test
Rohan Garg [Mon, 30 Apr 2012 21:50:49 +0000 (03:20 +0530)]
Update .gitignore for new test

12 years agoUse %lu for long unsigned int when calling printf
Rohan Garg [Tue, 17 Apr 2012 16:04:00 +0000 (21:34 +0530)]
Use %lu for long unsigned int when calling printf

12 years agoFix test-dribble
Rohan Garg [Wed, 4 Apr 2012 14:42:38 +0000 (20:12 +0530)]
Fix test-dribble

The ragent state can be either NICE_COMPONENT_CONNECTED or NICE_COMPONENT_READY

12 years agoUpdate documentation to reflect the dribble mode feature
Rohan Garg [Mon, 2 Apr 2012 14:36:28 +0000 (20:06 +0530)]
Update documentation to reflect the dribble mode feature

12 years agoAdded new tests for dribble mode in libnice
Rohan Garg [Fri, 16 Mar 2012 19:22:00 +0000 (00:52 +0530)]
Added new tests for dribble mode in libnice

4 tests in total :

  * Common to all :
    - Gather lagent and ragent candidates
    - Delay STUN response for lagent
    - Make sure connchecks succeed and data is sent across
      to lagent

  * standard_test :
    - Set remote candidates for lagent while lagent is still
      gathering it's own candidates

  * bad_credentials_test :
    - Set incorrect credentials for both lagent and ragent
    - Make sure connchecks fail
    - Signal STUN response and set correct credentials

  * bad_candidate_test :
    - Set a bad remote candidate for lagent
    - Make sure connchecks fail
    - Signal STUN response and set correct remote candidates

  * new_candidate_test :
    - As soon as a new local candidate is found set it as
      the remote candidate for the other agent

12 years agoAdd conn_check_add_for_local_candidate to add the newly found local candidate to...
Rohan Garg [Sat, 10 Mar 2012 13:13:41 +0000 (18:43 +0530)]
Add conn_check_add_for_local_candidate to add the newly found local candidate to the conncheck list

conn_check_add_for_local_candidate works exactly like conn_check_add_for_candidate
except that it starts connchecks for newly found local candidates with existing
remote candidates

Refactor priv_add_local_candidate_pruned to accept a NiceAgent and a stream_id
in order to call conn_check_add_for_local_candidate for newly gathered local candidate

12 years agoDribble Mode : Do not check whether we are still gathering our own candidates
Rohan Garg [Sat, 10 Mar 2012 12:44:21 +0000 (18:14 +0530)]
Dribble Mode : Do not check whether we are still gathering our own candidates

12 years agoversion 0.1.2.1
Youness Alaoui [Tue, 3 Apr 2012 20:40:45 +0000 (16:40 -0400)]
version 0.1.2.1

12 years agoversion 0.1.2 0.1.2
Youness Alaoui [Tue, 3 Apr 2012 20:37:38 +0000 (16:37 -0400)]
version 0.1.2

12 years agoRecognize a matching check if it's an INVALID message (error with no error-code)
Youness Alaoui [Tue, 3 Apr 2012 20:11:19 +0000 (16:11 -0400)]
Recognize a matching check if it's an INVALID message (error with no error-code)

12 years agoReinitiate a FAILED conncheck pair on a triggered check
Youness Alaoui [Tue, 3 Apr 2012 20:09:23 +0000 (16:09 -0400)]
Reinitiate a FAILED conncheck pair on a triggered check

12 years agoUse len instead of buf_len to check whether or not data was received properly
Rohan Garg [Fri, 23 Mar 2012 08:02:23 +0000 (13:32 +0530)]
Use len instead of buf_len to check whether or not data was received properly

12 years agoProperly ifdef windows headers in order to get compiles working on linux again
Rohan Garg [Sat, 10 Mar 2012 13:03:49 +0000 (18:33 +0530)]
Properly ifdef windows headers in order to get compiles working on linux again

12 years agoAdded more tests on Visual Studio platform
Filippo Della Betta [Thu, 8 Mar 2012 21:19:02 +0000 (16:19 -0500)]
Added more tests on Visual Studio platform

12 years agoFixed size of memcpy
Filippo Della Betta [Mon, 5 Mar 2012 16:55:59 +0000 (17:55 +0100)]
Fixed size of memcpy

12 years agounistd.h is not present on Visual Studio. Replaced usleep with g_usleep to support...
Filippo Della Betta [Mon, 5 Mar 2012 17:07:08 +0000 (18:07 +0100)]
unistd.h is not present on Visual Studio. Replaced usleep with g_usleep to support win32 platform as well. Added WSAStartup/WSACleanup on win32

12 years agoFixed mingw/msys compilation. Definition for intptr_t was missing. Added WSAStartup...
Filippo Della Betta [Mon, 5 Mar 2012 17:04:57 +0000 (18:04 +0100)]
Fixed mingw/msys compilation. Definition for intptr_t was missing. Added WSAStartup/WSACleanup on win32

12 years agoFixed mingw/msys compilation. Definition for intptr_t was missing. Added WSAStartup...
Filippo Della Betta [Mon, 5 Mar 2012 17:04:12 +0000 (18:04 +0100)]
Fixed mingw/msys compilation. Definition for intptr_t was missing. Added WSAStartup/WSACleanup on win32

12 years agoAdded WSAStartup/WSACleanup on win32
Filippo Della Betta [Mon, 5 Mar 2012 17:03:21 +0000 (18:03 +0100)]
Added WSAStartup/WSACleanup on win32

12 years agoFixed mingw/msys compilation. Definition for intptr_t was missing
Filippo Della Betta [Mon, 5 Mar 2012 17:02:30 +0000 (18:02 +0100)]
Fixed mingw/msys compilation. Definition for intptr_t was missing

12 years agoFixed compiling on Visual Studio and removed getsockname before bind. Added WSAStartu...
Filippo Della Betta [Mon, 5 Mar 2012 17:00:40 +0000 (18:00 +0100)]
Fixed compiling on Visual Studio and removed getsockname before bind. Added WSAStartup/WSACleanup on win32

12 years agoFixed compile on mingw/msys platform
Filippo Della Betta [Mon, 5 Mar 2012 16:57:53 +0000 (17:57 +0100)]
Fixed compile on mingw/msys platform

12 years agoAdded win32 section to .gitignore
Filippo Della Betta [Mon, 5 Mar 2012 16:54:52 +0000 (17:54 +0100)]
Added win32 section to .gitignore

12 years agoAdded support for compiling when gtk-doc is not installed
Filippo Della Betta [Mon, 5 Mar 2012 11:33:32 +0000 (12:33 +0100)]
Added support for compiling when gtk-doc is not installed

12 years agoAdded gio dependency
Filippo Della Betta [Mon, 5 Mar 2012 11:28:27 +0000 (12:28 +0100)]
Added gio dependency

12 years agoFix test-bsd by calling g_type_init
Youness Alaoui [Fri, 2 Mar 2012 02:33:17 +0000 (21:33 -0500)]
Fix test-bsd by calling g_type_init

12 years agoFix tcp-bsd/udp-bsd coding style, add robustness and remove use of name_len
Youness Alaoui [Fri, 2 Mar 2012 02:33:06 +0000 (21:33 -0500)]
Fix tcp-bsd/udp-bsd coding style, add robustness and remove use of name_len

12 years agoFix memory leak with udp-bsd
Youness Alaoui [Fri, 2 Mar 2012 02:31:52 +0000 (21:31 -0500)]
Fix memory leak with udp-bsd

12 years agoCallback now takes a GSocket * as argument
Youness Alaoui [Fri, 2 Mar 2012 02:27:48 +0000 (21:27 -0500)]
Callback now takes a GSocket * as argument

12 years agoFix coding style
Youness Alaoui [Fri, 2 Mar 2012 02:25:32 +0000 (21:25 -0500)]
Fix coding style

12 years agoReplace sockets with GSocket
Livio Madaro [Wed, 29 Feb 2012 13:24:58 +0000 (14:24 +0100)]
Replace sockets with GSocket

Use GSocket for better Windows compatibility

12 years agoset nonblocking mode for socket on Windows
Livio Madaro [Thu, 23 Feb 2012 15:39:08 +0000 (16:39 +0100)]
set nonblocking mode for socket on Windows

12 years agoChanged EOL to libnice.sln and added config.h
Filippo Della Betta [Thu, 23 Feb 2012 16:04:02 +0000 (17:04 +0100)]
Changed EOL to libnice.sln and added config.h

12 years agoAdded Microsoft Visual Studio 2008 (v9.0) support
Filippo Della Betta [Mon, 20 Feb 2012 10:47:09 +0000 (11:47 +0100)]
Added Microsoft Visual Studio 2008 (v9.0) support

12 years agoRemove redundant code from tests
Rohan Garg [Sat, 18 Feb 2012 20:12:32 +0000 (01:42 +0530)]
Remove redundant code from tests

12 years agoWSAStartup/WSACleanup added on WIN32 platform
Filippo Della Betta [Wed, 15 Feb 2012 11:02:13 +0000 (12:02 +0100)]
WSAStartup/WSACleanup added on WIN32 platform

12 years agoFixed warnings on Visual Studio platform
Filippo Della Betta [Fri, 17 Feb 2012 10:49:26 +0000 (11:49 +0100)]
Fixed warnings on Visual Studio platform

12 years agoAdded fix for Visual Studio platform
Filippo Della Betta [Fri, 17 Feb 2012 10:47:35 +0000 (11:47 +0100)]
Added fix for Visual Studio platform

12 years agoReplaced __func__ macro with G_STRFUNC in the unit tests
Filippo Della Betta [Wed, 15 Feb 2012 11:02:13 +0000 (12:02 +0100)]
Replaced __func__ macro with G_STRFUNC in the unit tests