Jens Georg [Thu, 24 Mar 2011 21:07:39 +0000 (23:07 +0200)]
Fix network calculation for IPv6
Zeeshan Ali (Khattak) [Tue, 8 Mar 2011 15:20:55 +0000 (17:20 +0200)]
Send notify for all lower versions as well
Zeeshan Ali (Khattak) [Tue, 8 Mar 2011 14:12:46 +0000 (16:12 +0200)]
Refactor a function
Refactor create_target_regex().
Zeeshan Ali (Khattak) [Thu, 3 Feb 2011 17:53:48 +0000 (19:53 +0200)]
Send alive message at least 3 times before expiry
We want to re-announce at least 3 times before the resource group expires
to cope with the unrelialble nature of UDP.
Read the paragraphs about 'CACHE-CONTROL' on pages 21-22 of UPnP Device
Architecture Document v1.1 for further details on this.
Luis de Bethencourt [Wed, 2 Feb 2011 11:54:14 +0000 (12:54 +0100)]
Clear the ChangeLog file
The ChangeLog was obsolete and since it's use has been replaced
by git log, an empty ChangeLog file is kept to satisfy autools.
Zeeshan Ali (Khattak) [Fri, 28 Jan 2011 13:54:29 +0000 (15:54 +0200)]
Release 0.9.2
Jens Georg [Wed, 26 Jan 2011 22:00:46 +0000 (23:00 +0100)]
Port network lookup code to Windows
Zeeshan Ali (Khattak) [Tue, 25 Jan 2011 15:08:12 +0000 (17:08 +0200)]
Add 'network' property to GSSDPClient
Jens Georg [Mon, 17 Jan 2011 19:54:27 +0000 (20:54 +0100)]
Streamline resource cleaning in socket_source_cb
Fixes Bug #2144.
Zeeshan Ali (Khattak) [Wed, 22 Dec 2010 10:03:58 +0000 (12:03 +0200)]
Require libsoup >= 2.26.1
Sven Neumann [Thu, 16 Dec 2010 13:41:21 +0000 (14:41 +0100)]
Fix issue introduced with commit
20dce239
The Reource struct is not any longer valid at the point we emit the
signal, so better not access it there.
Zeeshan Ali (Khattak) [Wed, 1 Dec 2010 15:10:05 +0000 (17:10 +0200)]
Release 0.9.1
Sven Neumann [Thu, 18 Nov 2010 21:33:49 +0000 (22:33 +0100)]
Fix potential crash in resource-unavailable()
Similar fix as for resource_expire(), emit the "resource-unavailable"
signal after having removed the resource from the list of available
resources.
Sven Neumann [Mon, 15 Nov 2010 08:58:40 +0000 (09:58 +0100)]
Fix potential crash in resource_expire()
GSSDPResourceBrowser emits "resource-unavailable" before it has removed
the resource from its cache. Now if the application changes the cache
in response to this signal emission the code will crash.
Fix this potential crash by emitting the signal after the resource
has been removed from the cache.
Zeeshan Ali (Khattak) [Fri, 12 Nov 2010 11:33:54 +0000 (13:33 +0200)]
Release 0.9.0
Zeeshan Ali (Khattak) [Fri, 12 Nov 2010 10:02:31 +0000 (12:02 +0200)]
Don't include private header in a public header
Jens Georg [Sun, 10 Oct 2010 19:39:29 +0000 (21:39 +0200)]
Don't print the whole packet on failure to send it
Only print destination and the error message.
Jens Georg [Sun, 2 May 2010 15:37:06 +0000 (17:37 +0200)]
Work-around some issues with gio on windows
glib uses a rather strange mechanism to init the winsock library (through
usage of g_inet_addres_*), so we better do it ourselves.
glib - rightly - doesn't set SO_REUSEADDR on g_socket_bind on windows
since it has different semantics. Nevertheless we need it on windows for
multicast sockets, so we add a helper function to set this socket option.
Jens Georg [Sun, 2 May 2010 14:13:50 +0000 (16:13 +0200)]
Port host IP address detection code to windows
Jens Georg [Fri, 26 Jun 2009 15:04:28 +0000 (17:04 +0200)]
Make it compile on mingw
Add headers and casts necessary to silence mingw. Additionaly
"interface" is a macro on Windows which leads to weird compiler errors;
renaming the variables was unavoidable
To make libtool generate DLLs on windows the linker flag -no-undefined
needs to be passed; otherwise libtool will only create static libraries.
Jens Georg [Tue, 7 Sep 2010 21:14:15 +0000 (23:14 +0200)]
Make GSSDPSocketSource a GObject
Zeeshan Ali (Khattak) [Fri, 8 Oct 2010 22:36:09 +0000 (01:36 +0300)]
Micro coding-style fix
Jens Georg [Sun, 2 May 2010 14:41:14 +0000 (16:41 +0200)]
Port GSSDP to GIO/GSocket
Ross Burton [Mon, 20 Sep 2010 10:47:18 +0000 (11:47 +0100)]
Pass all libs when building the tests, to please gold (#2196)
Zeeshan Ali (Khattak) [Thu, 16 Sep 2010 12:09:35 +0000 (15:09 +0300)]
Release 0.8.0
Jens Georg [Tue, 7 Sep 2010 20:20:42 +0000 (22:20 +0200)]
Properly catch errors in recvfrom
Errors previously were caught by sheer luck due to the fact that bytes
was declared size_t (unsigned), thus -1 mapping to typeof(size_t)_MAX
which most likely fullfilled the case of bytes > BUF_SIZE
Jens Georg [Wed, 8 Sep 2010 20:14:33 +0000 (22:14 +0200)]
Fix typo in socket-source
Zeeshan Ali (Khattak) [Tue, 24 Aug 2010 12:17:47 +0000 (15:17 +0300)]
Don't use deprecated libsoup API
Sven Neumann [Tue, 6 Jul 2010 13:34:06 +0000 (15:34 +0200)]
Flag string arg of GSSDPClient signal as static
Set the G_SIGNAL_TYPE_STATIC_SCOPE flag on the "from_ip" string
argument of the GSSDPClient::message-received signal.
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Sven Neumann [Tue, 22 Jun 2010 10:08:53 +0000 (12:08 +0200)]
Chain up in dispose() and finalize().
Ross Burton [Wed, 21 Apr 2010 15:33:14 +0000 (16:33 +0100)]
Fix typo (thanks berrie@codevio.com)
Zeeshan Ali (Khattak) [Thu, 8 Apr 2010 13:16:40 +0000 (16:16 +0300)]
Release 0.7.2
Zeeshan Ali (Khattak) [Fri, 9 Apr 2010 12:43:20 +0000 (15:43 +0300)]
Use complete paths of sources in GIR build rule
Fixes `make distcheck`.
Zeeshan Ali (Khattak) [Tue, 6 Apr 2010 16:06:53 +0000 (19:06 +0300)]
Hide internal API from introspection scanner
Zeeshan Ali (Khattak) [Sat, 20 Feb 2010 13:20:45 +0000 (15:20 +0200)]
Add gobject-introspection check macro
Depending on gobject-introspection installation to check for
gobject-introspection is a bad idea. This patch inlines the check macro.
Jens Georg [Sat, 6 Mar 2010 20:01:53 +0000 (21:01 +0100)]
Add ACLOCAL_AMFLAGS so that autoreconf will obey ACLOCAL_FLAGS
Neil Roberts [Thu, 18 Mar 2010 16:40:45 +0000 (16:40 +0000)]
autogen.sh: Obey the ACLOCAL_FLAGS environment variable
This allows additional macro search paths to be searched by setting
the ACLOCAL_FLAGS variable. This is needed for jhbuild.
http://bugzilla.openedhand.com/show_bug.cgi?id=2039
Zeeshan Ali (Khattak) [Mon, 4 Jan 2010 17:12:26 +0000 (19:12 +0200)]
If target is not a URN, no need to deal with version
Zeeshan Ali (Khattak) [Thu, 31 Dec 2009 15:40:29 +0000 (17:40 +0200)]
Version in target must be at the end of the string
Ross Burton [Thu, 21 Jan 2010 08:38:12 +0000 (08:38 +0000)]
Use silent rules
Ross Burton [Thu, 21 Jan 2010 08:36:32 +0000 (08:36 +0000)]
Update ignores
Ross Burton [Thu, 21 Jan 2010 08:36:25 +0000 (08:36 +0000)]
Build introspection data
Ross Burton [Thu, 21 Jan 2010 08:36:11 +0000 (08:36 +0000)]
Check for gobject-introspection
Zeeshan Ali (Khattak) [Fri, 4 Dec 2009 13:11:45 +0000 (15:11 +0200)]
Prepare release 0.7.1
Olivier Crête [Tue, 1 Dec 2009 13:08:06 +0000 (18:38 +0530)]
Have specific GError code for interfaces without an IP address
Ross Burton [Wed, 2 Dec 2009 11:09:52 +0000 (11:09 +0000)]
If we can't create a request socket don't try to create a multicast socket
Mattias Wadman [Wed, 2 Dec 2009 11:06:26 +0000 (11:06 +0000)]
Use SO_REUSEPORT if present
Darwin and some BSDs don't have SO_REUSEADDR, but SO_REUSEPORT.
Signed-off-by: Ross Burton <ross@linux.intel.com>
iain [Tue, 24 Nov 2009 21:01:31 +0000 (21:01 +0000)]
Make GSSDPClient ignore Point to Point interfaces so that GUPnP stops putting stuff on my VPN connection
Olivier Crête [Tue, 8 Sep 2009 23:03:41 +0000 (19:03 -0400)]
Don't leak target regex
Ross Burton [Sun, 6 Sep 2009 10:16:04 +0000 (11:16 +0100)]
Remove gssdp_client_new_full (#1796)
Zeeshan Ali (Khattak) [Fri, 28 Aug 2009 13:52:57 +0000 (16:52 +0300)]
Release announcement for release 0.7
Zeeshan Ali (Khattak) [Fri, 28 Aug 2009 13:53:38 +0000 (16:53 +0300)]
Revert "Print interface and IP client gets bound to"
This reverts commit
4d48561a8e601c2fc3911839754507f9c369dd0a.
Zeeshan Ali (Khattak) [Thu, 27 Aug 2009 15:38:58 +0000 (18:38 +0300)]
Discard packets from different network
We need this code to make sure the right client received the packet. We
won't need to do this if there was any way to tell Mr. Unix that we are
only interested in receiving multicast packets on this socket from a
particular interface but AFAIK that is not possible, at least not in a
portable way.
Zeeshan Ali (Khattak) [Wed, 29 Jul 2009 18:20:57 +0000 (21:20 +0300)]
Add a getter for GSSDPClient:active
Zeeshan Ali (Khattak) [Tue, 21 Jul 2009 15:41:42 +0000 (18:41 +0300)]
Update copyrights in docs
Zeeshan Ali (Khattak) [Tue, 21 Jul 2009 15:29:21 +0000 (18:29 +0300)]
Update docs
Zeeshan Ali (Khattak) [Tue, 21 Jul 2009 12:02:59 +0000 (15:02 +0300)]
Prefer non-loopback IPv4 interfaces
Zeeshan Ali (Khattak) [Tue, 21 Jul 2009 07:03:50 +0000 (10:03 +0300)]
Print interface and IP client gets bound to
Zeeshan Ali (Khattak) [Mon, 20 Jul 2009 22:16:26 +0000 (01:16 +0300)]
No need to find the default route
The code is not just platform dependent but apparently it doesn't really
work either. Also do we really want to bind to default interface? Facts
to keep in mind:
1. If only loopback interface is up, there usually is no route set to it.
2. In case of multiple networks, the default route is usually set to the one
connecting to internet rather than the local network (right?).
Zeeshan Ali (Khattak) [Mon, 20 Jul 2009 13:43:21 +0000 (16:43 +0300)]
Client now binds to interface rather than IP
While in reality we still bind the sockets to IP, we can already fix
the API. We can later fix this completely without breaking any APIs.
Zeeshan Ali (Khattak) [Mon, 20 Jul 2009 12:58:03 +0000 (15:58 +0300)]
Correct behavior/docs for get_host_ip()
This function should also entertain loopback interface.
Zeeshan Ali (Khattak) [Wed, 15 Jul 2009 16:08:59 +0000 (19:08 +0300)]
Version-independent M-SEARCH response
Most (UPnP) resources have ":VERSION" prefix in their target and UPnP docs
and DLNA require us to respond to M-SEARCH requests even if the requested
version in M-SEARCH is different.
Zeeshan Ali (Khattak) [Tue, 14 Jul 2009 16:01:43 +0000 (19:01 +0300)]
Version-independent target match
DLNA and new UPnP docs make it very clear that clients should be able to
deal with any version of resource while announcing their interest in a
particular version.
Zeeshan Ali (Khattak) [Tue, 14 Jul 2009 13:43:46 +0000 (16:43 +0300)]
Put target compatibility in a separate function
Zeeshan Ali (Khattak) [Tue, 14 Jul 2009 11:11:45 +0000 (14:11 +0300)]
Add "active" property to GSSDPClient
If set to FALSE, the client won't send any messages on the network.
We need this to make sure that we don't send byebye messages after
a network interface (and hence the associated GUPnPContext) goes down.
Jens Georg [Fri, 1 May 2009 14:12:36 +0000 (16:12 +0200)]
Port gssdp-device-sniffer to GtkBuilder
Zeeshan Ali (Khattak) [Fri, 3 Jul 2009 16:23:09 +0000 (19:23 +0300)]
get_default_host_ip() is not supposed to return NULL
This fixes the crash happening due to recent changes in case of empty
routing table.
Zeeshan Ali (Khattak) [Thu, 2 Jul 2009 14:29:31 +0000 (17:29 +0300)]
Minor indentation fix
Don't go beyond 80 columns.
Ross Burton [Fri, 26 Jun 2009 10:27:34 +0000 (11:27 +0100)]
Bump library version
Ross Burton [Fri, 26 Jun 2009 10:26:54 +0000 (11:26 +0100)]
Version bump to 0.7 as we have new APIs
Ross Burton [Sun, 26 Apr 2009 08:54:29 +0000 (09:54 +0100)]
Add documentation about LTVERSION
Ross Burton [Sun, 26 Apr 2009 08:57:27 +0000 (09:57 +0100)]
Add basic .gitignore
Zeeshan Ali (Khattak) [Fri, 6 Mar 2009 20:59:24 +0000 (22:59 +0200)]
Update copyrights according to the latest changes.
Zeeshan Ali (Khattak) [Fri, 6 Mar 2009 16:34:36 +0000 (18:34 +0200)]
Bind request socket to host_ip.
Zeeshan Ali (Khattak) [Fri, 6 Mar 2009 15:55:17 +0000 (17:55 +0200)]
Address the socket is bound to is determined by the type of socket.
Zeeshan Ali (Khattak) [Fri, 6 Mar 2009 14:34:52 +0000 (16:34 +0200)]
Attach the sockets main_context to after they are created.
Zeeshan Ali (Khattak) [Fri, 6 Mar 2009 14:08:15 +0000 (16:08 +0200)]
No need to initialize private struct fields to NULL.
Zeeshan Ali (Khattak) [Fri, 6 Mar 2009 14:07:26 +0000 (16:07 +0200)]
Initialize the server id in _init.
Zeeshan Ali (Khattak) [Fri, 6 Mar 2009 11:42:38 +0000 (13:42 +0200)]
Enable multicast loopback.
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 22:50:37 +0000 (00:50 +0200)]
Join the multicast group on the specified interface.
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 22:34:25 +0000 (00:34 +0200)]
Set error later.
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 17:51:38 +0000 (19:51 +0200)]
Initialize in _constructed rather than _init.
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 17:09:32 +0000 (19:09 +0200)]
inet_aton returns 0 on error.
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 16:54:53 +0000 (18:54 +0200)]
Pass "host-ip" to socket source.
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 16:34:44 +0000 (18:34 +0200)]
Use inet_aton instead of inet_addr and handle the error from it.
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 15:03:32 +0000 (17:03 +0200)]
Move "host-ip" property from GUPnPContext to base GSSDPClient.
Olivier Crête [Mon, 1 Jun 2009 23:10:26 +0000 (19:10 -0400)]
Put the message src timeout in the specified GMainContext
Ross Burton [Mon, 27 Apr 2009 19:53:41 +0000 (20:53 +0100)]
Fix pkg-config paths (#1570)
Zeeshan Ali (Khattak) [Thu, 5 Mar 2009 15:54:00 +0000 (17:54 +0200)]
Post release version bump.
Zeeshan Ali (Khattak) [Fri, 20 Feb 2009 10:45:52 +0000 (12:45 +0200)]
Release announcement.
Zeeshan Ali (Khattak) [Fri, 20 Feb 2009 10:15:19 +0000 (12:15 +0200)]
Fix a typo.
Last release was 0.6.3, not 0.6.2.
Zeeshan Ali (Khattak) [Fri, 20 Feb 2009 10:12:16 +0000 (12:12 +0200)]
Bump release.
Jorn Baayen [Wed, 3 Dec 2008 10:35:02 +0000 (10:35 +0000)]
2008-12-03 Jorn Baayen <jorn.baayen@collabora.co.uk>
* tests/test-browser.c (main):
* tests/test-publish.c (main):
* tools/gssdp-device-sniffer.c (init_upnp):
Use g_printerr() and EXIT_{SUCCESS,FAILURE}.
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1387
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
Jorn Baayen [Wed, 3 Dec 2008 10:29:51 +0000 (10:29 +0000)]
2008-12-03 Jorn Baayen <jorn.baayen@collabora.co.uk>
* libgssdp/gssdp-resource-group.c (message_received_cb):
"All SSDP services MUST respond to SEARCH requests over the SSDP
multicast channel/port with the ST value of ssdp:all by responding
as if the ST value had been their service type. "
Thanks Hugo Calleja. Fixes #1312.
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1386
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
Jorn Baayen [Fri, 21 Nov 2008 18:09:16 +0000 (18:09 +0000)]
2008-11-21 Jorn Baayen <jorn.baayen@collabora.co.uk>
* AUTHORS:
New e-mail address.
* libgssdp/gssdp-resource-group.c (gssdp_resource_group_dispose),
(gssdp_resource_group_class_init),
(gssdp_resource_group_add_resource), (process_queue),
(queue_message), (resource_alive), (resource_byebye):
Do not byebye unavailable resources.
(And polish message delaying code a little)
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1371
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
Jussi Kukkonen [Wed, 19 Nov 2008 00:11:27 +0000 (00:11 +0000)]
2008-11-19 Jussi Kukkonen <jku@linux.intel.com>
* libgssdp/gssdp-resource-group.c:
Make gssdp_resource_group_queue_message() static as well.
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1369
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
Jussi Kukkonen [Wed, 19 Nov 2008 00:01:43 +0000 (00:01 +0000)]
2008-11-19 Jussi Kukkonen <jku@linux.intel.com>
* libgssdp/gssdp-resource-group.c:
Send byebyes in dispose without sleep: DLNA message delay is
only mandatory for alive-messages after all.
Make process_queue() static.
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1368
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
Jorn Baayen [Tue, 18 Nov 2008 15:34:15 +0000 (15:34 +0000)]
2008-11-18 Jorn Baayen <jorn.baayen@collabora.co.uk>
* configure.ac:
Depend on glib 2.18.
* libgssdp/gssdp-client.c (gssdp_client_set_property):
Use g_set_error_literal().
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1366
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
Jussi Kukkonen [Thu, 6 Nov 2008 11:16:45 +0000 (11:16 +0000)]
2008-11-06 Jussi Kukkonen <jku@linux.intel.com>
* doc/gssdp-sections.txt:
* libgssdp/gssdp-client.c (gssdp_client_new):
* libgssdp/gssdp-client.h (gssdp_client_new):
* libgssdp/gssdp-error.c (gssdp_error_quark):
* libgssdp/gssdp-resource-group.c (gssdp_resource_group_get_client):
Documentation fixes
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1350
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
Jussi Kukkonen [Thu, 6 Nov 2008 11:16:20 +0000 (11:16 +0000)]
2008-11-06 Jussi Kukkonen <jku@linux.intel.com>
* libgssdp/gssdp-resource-group.c:
Only send one SSDP message per X milliseconds (X == 20 by default)
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1349
d8cb91d7-bff9-0310-92b9-
80b65e4482b2