summaryrefslogtreecommitdiff
path: root/net/gnet/patches
diff options
context:
space:
mode:
authorwiz <wiz>2003-04-15 12:19:17 +0000
committerwiz <wiz>2003-04-15 12:19:17 +0000
commita4edad9bea192e8f3c8782d79187e439eefd2b3f (patch)
treed06ceadaa04729dedce00572e3b19df65044b783 /net/gnet/patches
parente199d1841a4cdeb2aa5eda6170c7985954a7b32e (diff)
downloadpkgsrc-a4edad9bea192e8f3c8782d79187e439eefd2b3f.tar.gz
Update to 2.0.0.
* DNS bug fixes * FreeBSD compile fixes and UDP send bug fix * New functions: gnet_{udp,mcast}_socket_get_local_inetaddr * Build improvements: library is now named libgnet-MAJOR.MINOR, favors GLib 2 over GLib 1.2 * New Base64 module (by Alfred Reibenschuh) * Major documentation improvements * Some minor API renaming in Inetaddr and TcpSocket * IPv6 support * Server, Conn, URI, and Unix modules are no longer "experimental" * Header files are now in gnet-2.0 * gnet-config removed. Use pkg-config. * Many API changes * gnet_server_new() changed, but the prototype is the same. Make sure you are using the new version correctly.
Diffstat (limited to 'net/gnet/patches')
-rw-r--r--net/gnet/patches/patch-aa32
-rw-r--r--net/gnet/patches/patch-ab18
-rw-r--r--net/gnet/patches/patch-ac25
-rw-r--r--net/gnet/patches/patch-ad14
-rw-r--r--net/gnet/patches/patch-ae17
5 files changed, 20 insertions, 86 deletions
diff --git a/net/gnet/patches/patch-aa b/net/gnet/patches/patch-aa
deleted file mode 100644
index ebb16595a79..00000000000
--- a/net/gnet/patches/patch-aa
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-aa,v 1.3 2003/02/13 00:29:53 dmcmahill Exp $
-
---- src/iochannel.c.orig Wed Aug 14 12:51:02 2002
-+++ src/iochannel.c Wed Feb 12 09:58:27 2003
-@@ -51,5 +51,5 @@
- {
- guint nleft;
-- guint nwritten;
-+ gsize nwritten;
- gchar* ptr;
- GIOError error = G_IO_ERROR_NONE;
-@@ -108,5 +108,5 @@
- {
- guint nleft;
-- guint nread;
-+ gsize nread;
- gchar* ptr;
- GIOError error = G_IO_ERROR_NONE;
-@@ -476,5 +476,5 @@
- else if (condition & G_IO_OUT)
- {
-- guint bytes_written;
-+ gsize bytes_written;
-
- if (g_io_channel_write(iochannel,
-@@ -662,5 +662,5 @@
- GIOError error;
- guint bytes_to_read;
-- guint bytes_read;
-+ gsize bytes_read;
- gint bytes_processed;
-
diff --git a/net/gnet/patches/patch-ab b/net/gnet/patches/patch-ab
deleted file mode 100644
index 3d67f534a2d..00000000000
--- a/net/gnet/patches/patch-ab
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2003/02/13 00:29:53 dmcmahill Exp $
-
---- examples/echoserver.c.orig Thu Sep 26 13:58:59 2002
-+++ examples/echoserver.c Wed Feb 12 10:00:59 2003
-@@ -319,5 +319,5 @@
- {
- GIOError error;
-- guint bytes_read;
-+ gsize bytes_read;
-
- /* Read the data into our buffer */
-@@ -369,5 +369,5 @@
- {
- GIOError error;
-- guint bytes_written;
-+ gsize bytes_written;
-
- /* Write the data out */
diff --git a/net/gnet/patches/patch-ac b/net/gnet/patches/patch-ac
deleted file mode 100644
index 8475ed819cf..00000000000
--- a/net/gnet/patches/patch-ac
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2003/02/13 00:29:53 dmcmahill Exp $
-
---- examples/echoclient.c.orig Thu Sep 26 13:58:59 2002
-+++ examples/echoclient.c Wed Feb 12 10:03:38 2003
-@@ -278,5 +278,5 @@
- GIOError error;
- gchar buffer[1024];
-- guint bytes_read;
-+ gsize bytes_read;
-
- /* Read the data into our buffer */
-@@ -332,5 +332,5 @@
- GIOError error;
- gchar buffer[1024];
-- guint bytes_read;
-+ gsize bytes_read;
-
- /* Read the data into our buffer */
-@@ -451,5 +451,5 @@
- GIOError error;
- gchar buffer[1024];
-- guint bytes_read;
-+ gsize bytes_read;
-
- /* Read the data into our buffer */
diff --git a/net/gnet/patches/patch-ad b/net/gnet/patches/patch-ad
index e210c164deb..82b995a99ca 100644
--- a/net/gnet/patches/patch-ad
+++ b/net/gnet/patches/patch-ad
@@ -1,18 +1,22 @@
-$NetBSD: patch-ad,v 1.1 2003/02/13 00:29:53 dmcmahill Exp $
+$NetBSD: patch-ad,v 1.2 2003/04/15 12:19:19 wiz Exp $
---- examples/echoserver-unix.c.orig Thu Sep 26 13:58:59 2002
-+++ examples/echoserver-unix.c Wed Feb 12 10:04:48 2003
-@@ -234,5 +234,5 @@
+--- examples/echoserver-unix.c.orig Mon Feb 3 20:01:56 2003
++++ examples/echoserver-unix.c
+@@ -228,7 +228,7 @@ async_client_iofunc(GIOChannel *iochanne
+ /* Check for data to be read (or if the socket was closed) */
if (c & G_IO_IN) {
GIOError e;
- guint bytes_read;
+ gsize bytes_read;
/* Read the data into our buffer */
-@@ -265,5 +265,5 @@
+ e = g_io_channel_read(iochannel,
+@@ -259,7 +259,7 @@ async_client_iofunc(GIOChannel *iochanne
+ }
if (c & G_IO_OUT) {
GIOError e;
- guint bytes_written;
+ gsize bytes_written;
/* Write the data out */
e = g_io_channel_write(iochannel, cs->buffer, cs->n,
+ &bytes_written);
diff --git a/net/gnet/patches/patch-ae b/net/gnet/patches/patch-ae
index eac9b77eaf0..26334ea3d60 100644
--- a/net/gnet/patches/patch-ae
+++ b/net/gnet/patches/patch-ae
@@ -1,21 +1,25 @@
-$NetBSD: patch-ae,v 1.1 2003/02/13 00:29:53 dmcmahill Exp $
+$NetBSD: patch-ae,v 1.2 2003/04/15 12:19:19 wiz Exp $
---- examples/hfetch.c.orig Thu Sep 26 13:58:59 2002
-+++ examples/hfetch.c Wed Feb 12 10:06:35 2003
-@@ -115,4 +115,5 @@
+--- examples/hfetch.c.orig Mon Feb 3 20:01:56 2003
++++ examples/hfetch.c
+@@ -114,6 +114,7 @@ hfetch(gchar* server, gint port, gchar*
+ gchar buffer[1024];
GIOError error;
guint n;
+ gsize n2;
-@@ -143,5 +144,5 @@
+ /* Create the address */
+@@ -142,17 +143,17 @@ hfetch(gchar* server, gint port, gchar*
+ /* Read the output */
while (1)
{
- error = g_io_channel_read(iochannel, buffer, sizeof(buffer), &n);
+ error = g_io_channel_read(iochannel, buffer, sizeof(buffer), &n2);
if (error != G_IO_ERROR_NONE)
{
-@@ -150,8 +151,8 @@
+ g_warning("Read error: %d\n", error);
+ break;
}
- if (n == 0)
@@ -26,3 +30,4 @@ $NetBSD: patch-ae,v 1.1 2003/02/13 00:29:53 dmcmahill Exp $
+ fwrite(buffer, n2, 1, stdout);
}
+ gnet_tcp_socket_delete(socket);