From rodrigo.cabeceiras@tvtel.pt Mon Feb 02 20:57:31 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 72706 invoked by uid 1000); 2 Feb 2004 20:57:31 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 72695 invoked from network); 2 Feb 2004 20:57:30 -0000 Received: from unknown (HELO free.tvtel.pt) (0@82.102.32.75) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 2 Feb 2004 20:57:30 -0000 Received: from mail2.expernet.pt ([82.102.32.65]) by free.tvtel.pt (8.12.10/8.12.10) with ESMTP id i12KoZAD021069 for ; Mon, 2 Feb 2004 20:50:35 GMT Received: from asusp4 ([82.102.47.57]) by mail2.expernet.pt (8.12.8/8.11.4) with ESMTP id i12KkgQU031900 for ; Mon, 2 Feb 2004 20:46:51 GMT From: "Rodrigo Cabeceiras" To: Date: Mon, 2 Feb 2004 20:55:29 -0000 Message-ID: <002101c3e9ce$e7aceb70$6900a8c0@asusp4> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0022_01C3E9CE.E7ACEB70" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal X-Virus-Scanned: by AMaViS-ng ( for Tvtel.Pt ) Cc: Subject: [gnet] examples mcast X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 20:57:32 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0022_01C3E9CE.E7ACEB70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, does any one has any example of multicast client/server, i have been unable to put them to work. If any one could help=85. =20 =20 Tks, Rodrigo=20 =20 *********************************** =20 Rodrigo de Meneses Barcelos Cabeceiras Rua do Ameal n=BA.507 5=BAEsq. 4200-061 Porto Tel. 917776045 =20 msn: rodrigo.cabeceiras@tvtel.pt =20 Web www.rodrigocabeceiras.pt.to =20 *********************************** =20 ------=_NextPart_000_0022_01C3E9CE.E7ACEB70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi, does any one has = any example of multicast client/server, i have = been unable to put them to work. If any one could = help….

 

 

Tks<= /span>, Rodrigo

 

***********************************

 

Rodrigo de Meneses Barcelos = Cabeceiras

Rua do Ameal n=BA.507 = 5=BAEsq.

4200-061 Porto

Tel. 917776045

 

msn: rodrigo.cabeceiras@tvtel.pt    

Web = www.rodrigocabeceiras.pt.to<= /span>

=

 = ;

*****= ******************************

 

------=_NextPart_000_0022_01C3E9CE.E7ACEB70-- From dhelder@gizmolabs.org Tue Feb 03 02:46:07 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 41570 invoked by uid 1000); 3 Feb 2004 02:46:07 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 41563 invoked from network); 3 Feb 2004 02:46:07 -0000 Received: from bgp995024bgs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.40.44.45) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 3 Feb 2004 02:46:07 -0000 Subject: Re: [gnet] examples mcast From: "David A. Helder" To: Rodrigo Cabeceiras In-Reply-To: <002101c3e9ce$e7aceb70$6900a8c0@asusp4> References: <002101c3e9ce$e7aceb70$6900a8c0@asusp4> Content-Type: text/plain; charset=UTF-8 Message-Id: <1075776335.72939.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 02 Feb 2004 21:45:35 -0500 Content-Transfer-Encoding: 8bit Cc: gnet@gnetlibrary.org X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 02:46:08 -0000 Did you try the examples included with GNet? David On Mon, 2004-02-02 at 15:55, Rodrigo Cabeceiras wrote: > Hi, does any one has any example of multicast client/server, i have > been unable to put them to work. If any one could help…. > > > > > > Tks, Rodrigo > > > > *********************************** > > > > Rodrigo de Meneses Barcelos Cabeceiras > > Rua do Ameal nº.507 5ºEsq. > > 4200-061 Porto > > Tel. 917776045 > > > > msn: rodrigo.cabeceiras@tvtel.pt > > Web www.rodrigocabeceiras.pt.to > > > > *********************************** > > > > > > ______________________________________________________________________ > _______________________________________________ > gnet mailing list > gnet@lists.gnetlibrary.org > http://lists.gizmolabs.org/mailman/listinfo/gnet -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From rodrigo.cabeceiras@tvtel.pt Tue Feb 03 16:05:02 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 80643 invoked by uid 1000); 3 Feb 2004 16:05:02 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 80490 invoked from network); 3 Feb 2004 16:04:59 -0000 Received: from damao.dee.isep.ipp.pt (root@193.136.63.3) by widget.gizmolabs.org with SMTP; 3 Feb 2004 16:04:59 -0000 Received: from asusp4 (deedin30.dee.isep.ipp.pt [193.136.61.229]) by damao.dee.isep.ipp.pt (8.11.6/8.9.3) with ESMTP id i13GQtJ05675 for ; Tue, 3 Feb 2004 16:26:55 GMT From: "Rodrigo Cabeceiras" To: Subject: RE: [gnet] examples mcast Date: Tue, 3 Feb 2004 16:04:29 -0000 Message-ID: <000201c3ea6f$6b131cf0$e53d88c1@asusp4> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal In-Reply-To: <1075776335.72939.0.camel@localhost> Cc: X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 16:05:02 -0000 Hi, gnet has no examples for mcast, i tried to change the udp examples but no result, i'm studing the examples but, it would more efective if i have something that worked. Tks=20 *********************************** =20 Rodrigo de Meneses Barcelos Cabeceiras Rua do Ameal n=BA.507 5=BAEsq. 4200-061 Porto Tel. 917776045 =20 msn: rodrigo.cabeceiras@tvtel.pt =20 Web www.rodrigocabeceiras.pt.to =20 *********************************** =20 -----Original Message----- From: David A. Helder [mailto:dhelder@gizmolabs.org]=20 Sent: ter=E7a-feira, 3 de Fevereiro de 2004 2:46 To: Rodrigo Cabeceiras Cc: gnet@gnetlibrary.org Subject: Re: [gnet] examples mcast Did you try the examples included with GNet? David On Mon, 2004-02-02 at 15:55, Rodrigo Cabeceiras wrote: > Hi, does any one has any example of multicast client/server, i have > been unable to put them to work. If any one could help=85. >=20 > =20 >=20 > =20 >=20 > Tks, Rodrigo=20 >=20 > =20 >=20 > *********************************** >=20 > =20 >=20 > Rodrigo de Meneses Barcelos Cabeceiras >=20 > Rua do Ameal n=BA.507 5=BAEsq. >=20 > 4200-061 Porto >=20 > Tel. 917776045 >=20 > =20 >=20 > msn: rodrigo.cabeceiras@tvtel.pt =20 >=20 > Web www.rodrigocabeceiras.pt.to >=20 > =20 >=20 > *********************************** >=20 > =20 >=20 >=20 >=20 > ______________________________________________________________________ > _______________________________________________ > gnet mailing list > gnet@lists.gnetlibrary.org > http://lists.gizmolabs.org/mailman/listinfo/gnet --=20 David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From H.Sokolowski@wsisiz.edu.pl Wed Feb 04 12:06:22 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 90666 invoked from network); 4 Feb 2004 12:06:22 -0000 Received: from kv84.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.31.84) by widget.gizmolabs.org with SMTP; 4 Feb 2004 12:06:22 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 0E213184399; Wed, 4 Feb 2004 13:06:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id EDBFB184398 for ; Wed, 4 Feb 2004 13:06:57 +0100 (CET) Date: Wed, 4 Feb 2004 13:06:57 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gnet] simultaneous asynchronic connections X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 12:06:23 -0000 hi! what is the limit of maximum asynchronous connections for client in gnet-2.0.4? I can only do about 1k connections at the same time, but I don't know if this is a gnet problem or server I am connecting to. btw. when are you planing to release gnet-2.0.5? greetings hs From tim-mailinglists@zen.co.uk Wed Feb 04 12:19:25 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 94917 invoked from network); 4 Feb 2004 12:19:24 -0000 Received: from heisenberg.zen.co.uk (212.23.8.70) by widget.gizmolabs.org with SMTP; 4 Feb 2004 12:19:24 -0000 Received: from dsl-217-155-195-89.zen.co.uk ([217.155.195.89] helo=192.168.0.2) by heisenberg.zen.co.uk with esmtp (Exim 4.22) id 1AoM02-0007pa-Ne; Wed, 04 Feb 2004 12:19:22 +0000 From: Tim =?utf-8?q?M=C3=BCller?= To: Hubert =?utf-8?q?Soko=C5=82owski?= , gnet@lists.gnetlibrary.org Subject: Re: [gnet] simultaneous asynchronic connections Date: Wed, 4 Feb 2004 12:19:21 +0000 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200402041219.21820.tim-mailinglists@zen.co.uk> X-Originating-Heisenberg-IP: [217.155.195.89] Cc: X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 12:19:25 -0000 On Wednesday 04 February 2004 12:06, Hubert Sokołowski wrote: > what is the limit of maximum asynchronous connections for client in > gnet-2.0.4? I can only do about 1k connections at the same time, but I > don't know if this is a gnet problem or server I am connecting to. I very much doubt that this is an internal gnet limit. There is a system limit for the maximum number of file descriptors that a user on the system can have open at the same time. You can see this limit when you type % ulimit -n in a bash shell (different for other shells). This limit seems to be 1024 by default on a lot of systems, so if you want more concurrent connections you will probably need to change this setting in your system settings [*]. Of course it is also possible that the same limit applies to the server. Cheers -Tim [*] for what it's worth, you can find some pointers on how and where to change that limit on your system here: http://ed2k-gtk-gui.sourceforge.net/docs/en-5.html#ss5.20 From H.Sokolowski@wsisiz.edu.pl Wed Feb 04 12:39:20 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 2136 invoked from network); 4 Feb 2004 12:39:20 -0000 Received: from kv84.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.31.84) by widget.gizmolabs.org with SMTP; 4 Feb 2004 12:39:20 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id AF019184399; Wed, 4 Feb 2004 13:39:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id AD2FC184398 for ; Wed, 4 Feb 2004 13:39:56 +0100 (CET) Date: Wed, 4 Feb 2004 13:39:56 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Subject: Re: [gnet] simultaneous asynchronic connections In-Reply-To: <200402041219.21820.tim-mailinglists@zen.co.uk> Message-ID: References: <200402041219.21820.tim-mailinglists@zen.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 12:39:21 -0000 > [*] for what it's worth, you can find some pointers on how and where to change > that limit on your system here: > http://ed2k-gtk-gui.sourceforge.net/docs/en-5.html#ss5.20 thanks, I forgot about this limit. From rodrigo.cabeceiras@tvtel.pt Wed Feb 04 16:15:56 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 90272 invoked by uid 1000); 4 Feb 2004 16:15:54 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 90228 invoked from network); 4 Feb 2004 16:15:42 -0000 Received: from damao.dee.isep.ipp.pt (root@193.136.63.3) by widget.gizmolabs.org with SMTP; 4 Feb 2004 16:15:42 -0000 Received: from asusp4 (deedin30.dee.isep.ipp.pt [193.136.61.229]) by damao.dee.isep.ipp.pt (8.11.6/8.9.3) with ESMTP id i14GbdJ31959 for ; Wed, 4 Feb 2004 16:37:39 GMT From: "Rodrigo Cabeceiras" To: Date: Wed, 4 Feb 2004 16:15:17 -0000 Message-ID: <000001c3eb3a$188425d0$e53d88c1@asusp4> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C3EB3A.188425D0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Cc: Subject: [gnet] sizeof buffer recived whit udp socket X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 16:15:58 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C3EB3A.188425D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I=92m using the udp socket examples of gnet, i recive a =93gchar buffer[1024]=94, but my buffer is a xml and to parse it I can not have more data in the buffer other than xml itself. So the buffer I receive is 1024 long and contains 150 chars (that is the size of my xml). Hoe can I reduce de buffer from 1024 to the size odf what is inside? Can I copy the buffer until the =93\0=94 (EOF), so that when I pass the = parser it receives only xml data? =20 Please If any one could give a hint .. Tks, Rodrigo =20 =20 *********************************** =20 Rodrigo de Meneses Barcelos Cabeceiras Rua do Ameal n=BA.507 5=BAEsq. 4200-061 Porto Tel. 917776045 =20 msn: rodrigo.cabeceiras@tvtel.pt =20 Web www.rodrigocabeceiras.pt.to =20 *********************************** =20 ------=_NextPart_000_0001_01C3EB3A.188425D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

I’m using the = udp socket examples of gnet, i recive a = “gchar buffer[1024]”, but my buffer is a xml and to parse it I can not have more data in the buffer = other than xml itself. So the buffer I receive is 1024 long and contains 150 = chars (that is the size of my xml). Hoe can I reduce de buffer from 1024 to = the size odf what is inside?=A0=A0=A0 Can I copy the buffer until the “\0” (EOF), so that = when I pass the parser it receives only xml data?

 

Please If any one = could give a hint ..

Tks<= /span>, Rodrigo

 

 

***********************************

 

Rodrigo de Meneses Barcelos = Cabeceiras

Rua do Ameal n=BA.507 = 5=BAEsq.

4200-061 Porto

Tel. 917776045

 

msn: rodrigo.cabeceiras@tvtel.pt    

Web = www.rodrigocabeceiras.pt.to<= /span>

=

 = ;

*****= ******************************

 

------=_NextPart_000_0001_01C3EB3A.188425D0-- From rapacity@quex.org Thu Feb 05 04:51:26 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 52448 invoked by uid 1000); 5 Feb 2004 04:51:26 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 52439 invoked from network); 5 Feb 2004 04:51:24 -0000 Received: from morbid.quex.org (@203.34.17.234) by widget.gizmolabs.org with SMTP; 5 Feb 2004 04:51:24 -0000 Received: by morbid.quex.org (Postfix, from userid 1000) id 332FD25462; Thu, 5 Feb 2004 12:51:09 +0800 (WST) Date: Thu, 5 Feb 2004 12:51:09 +0800 From: Michael Alger To: gnet@gnetlibrary.org Subject: Re: [gnet] sizeof buffer recived whit udp socket Message-ID: <20040205045108.GA15739@quex.org> References: <000001c3eb3a$188425d0$e53d88c1@asusp4> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <000001c3eb3a$188425d0$e53d88c1@asusp4> User-Agent: Mutt/1.5.5.1+cvs20040105i Cc: X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 04:51:26 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 04, 2004 at 04:15:17PM -0000, Rodrigo Cabeceiras wrote: > I?m using the udp socket examples of gnet, i recive a ?gchar > buffer[1024]?, but my buffer is a xml and to parse it I can not have > more data in the buffer other than xml itself. So the buffer I receive > is 1024 long and contains 150 chars (that is the size of my xml). Hoe > can I reduce de buffer from 1024 to the size odf what is inside? Can > I copy the buffer until the ?\0? (EOF), so that when I pass the parser > it receives only xml data? The actual size of the buffer should be irrelevant. Either the XML parser needs to be told how many bytes (or characters) it should parse, or it will parse all data up to a terminator, typically NUL (0x00). C doesn't have a facility to pass an entire array to a function, only a pointer to the start of the array. It's up to the function to decide how long it is; either by assuming a particular length or, more commonly, by having an extra parameter to indicate the length of the array/buffer/string. Some functions (such as strcmp()) assume the data is terminated with a special character, and so don't need to be told the length of the buffer explicitly. Typically you'll have a function which looks like: parse_xml_buffer (const char *buffer, int length) In this case, 'buffer' is just the start of the data you received, and 'length' is the number of bytes you received. It doesn't matter if the buffer is 1500 bytes and you tell the function the length is 150; it has no way of knowing the actual size of the buffer, and will only try to parse what you told it to. The inverse applies too: if the buffer is 1500 bytes and you tell the function it's 40000, it will try to parse data beyond the end of the buffer, typically resulting in the program crashing. I seem to recall the UDP functions return the length of the received data, so you should be able to just use that for the size. If it says you received more than you were expecting, you should print out the buffer (or use something like ethereal to view the network traffic) and see exactly what it is you're receiving. Mike. --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAIcu8eEOejZTV05YRAjcFAKCUVvzp5NP47PVitheYxcL/jbNKAQCeKHD+ re1qDBtrv2DJusAlsjwfczY= =1VG2 -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- From dhelder@gizmolabs.org Wed Feb 18 04:00:22 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 69343 invoked from network); 18 Feb 2004 04:00:21 -0000 Received: from pcp08840538pcs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.43.196.47) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 18 Feb 2004 04:00:21 -0000 From: "David A. Helder" To: gnet-dev@lists.gnetlibrary.org Content-Type: text/plain Message-Id: <1077076790.93288.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 17 Feb 2004 22:59:50 -0500 Content-Transfer-Encoding: 7bit Cc: gnet@lists.gnetlibrary.org Subject: [gnet] New snapshot X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 04:00:22 -0000 Here is the latest snapshot. If this is stable, this will become GNet 2.0.5. http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz David -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From H.Sokolowski@wsisiz.edu.pl Wed Feb 18 08:22:14 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 13523 invoked from network); 18 Feb 2004 08:22:12 -0000 Received: from kr2.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.27.2) by widget.gizmolabs.org with SMTP; 18 Feb 2004 08:22:12 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 9C4EA18478A; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 9AAA6184789; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Date: Wed, 18 Feb 2004 09:22:38 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: "David A. Helder" Subject: Re: [gnet] New snapshot In-Reply-To: <1077076790.93288.13.camel@localhost> Message-ID: References: <1077076790.93288.13.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: gnet-dev@lists.gnetlibrary.org, gnet@lists.gnetlibrary.org X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 08:22:14 -0000 On Tue, 17 Feb 2004, David A. Helder wrote: > Here is the latest snapshot. If this is stable, this will become GNet > 2.0.5. > > http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz thanks, I will test it on linux and windows. hs From H.Sokolowski@wsisiz.edu.pl Mon Feb 23 14:20:35 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 5878 invoked from network); 23 Feb 2004 14:20:35 -0000 Received: from kg4.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.16.4) by widget.gizmolabs.org with SMTP; 23 Feb 2004 14:20:35 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 0634C18478A; Mon, 23 Feb 2004 15:21:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 0074E184789 for ; Mon, 23 Feb 2004 15:21:39 +0100 (CET) Date: Mon, 23 Feb 2004 15:21:39 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gnet] cancelling async connection X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 14:20:36 -0000 hi! I try to connect with gnet_tcp_socket_connect_async but before the callback is called I do gnet_tcp_socket_connect_async_cancel then I get GNet-CRITICAL **: file tcp.c: line 231 (gnet_tcp_socket_connect_async_cancel): assertion `state != NULL' failed what I do wrong? thanks in advance hs From H.Sokolowski@wsisiz.edu.pl Mon Feb 23 14:40:21 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 13823 invoked from network); 23 Feb 2004 14:40:21 -0000 Received: from kg4.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.16.4) by widget.gizmolabs.org with SMTP; 23 Feb 2004 14:40:21 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id E6E1D18478A; Mon, 23 Feb 2004 15:41:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id E4B4B184789 for ; Mon, 23 Feb 2004 15:41:27 +0100 (CET) Date: Mon, 23 Feb 2004 15:41:27 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gnet] cancelling async connections X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 14:40:22 -0000 I forgot to save GTcpSocketConnectAsyncID, sory. but my code still doesn't work fine. sometimes I got segfault (gdb) info stack #0 0x00000000 in ?? () #1 0x4044c31c in gnet_tcp_socket_connect_tcp_cb (socket=0x813c0a0, data=0x81394c8) at tcp.c:180 #2 0x4044c9d0 in gnet_tcp_socket_new_async_cb (iochannel=0x8118c78, condition=G_IO_OUT, data=0x81394c8) at tcp.c:510 #3 0x4041e2df in g_vsnprintf () from /usr/lib/libglib-2.0.so.0 #4 0x403fcd00 in unblock_source () from /usr/lib/libglib-2.0.so.0 #5 0x403fdd98 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #6 0x403fe0ad in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #7 0x403fe7cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 can this be a problem with my code? From a.rottmann@gmx.at Mon Feb 23 15:01:11 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 27722 invoked from network); 23 Feb 2004 15:01:10 -0000 Received: from mail.gmx.de (HELO mail.gmx.net) (213.165.64.20) by widget.gizmolabs.org with SMTP; 23 Feb 2004 15:01:10 -0000 Received: (qmail 6158 invoked by uid 65534); 23 Feb 2004 15:00:39 -0000 Received: from chello212186006140.401.14.univie.teleweb.at (EHLO garibaldi) (212.186.6.140) by mail.gmx.net (mp026) with SMTP; 23 Feb 2004 16:00:39 +0100 X-Authenticated: #3102804 Received: from ivanova.rhinosaur.lan ([192.168.1.9] helo=ivanova) by garibaldi with esmtp (Exim 4.30) id 1AvHZP-0003Pa-9j; Mon, 23 Feb 2004 16:00:31 +0100 Received: from andy by ivanova with local (Exim 4.30) id 1AvHZP-0008Qw-6D; Mon, 23 Feb 2004 16:00:31 +0100 To: =?utf-8?q?Hubert_Soko=C5=82owski?= Subject: Re: [gnet] cancelling async connections References: From: Andreas Rottmann Date: Mon, 23 Feb 2004 16:00:30 +0100 In-Reply-To: (Hubert =?utf-8?q?Soko=C5=82owski's?= message of "Mon, 23 Feb 2004 15:41:27 +0100 (CET)") Message-ID: <87ad39suwh.fsf@alice.rotty.yi.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: Andreas Rottmann X-Spam-Score: -4.9 (----) X-Spam-Report: Spam detection software, running on the system "garibaldi", has analyzed this incoming email. Results are shown below. Content analysis details: (-4.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Cc: gnet@lists.gnetlibrary.org X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 15:01:12 -0000 Hubert Soko=C5=82owski writes: > I forgot to save GTcpSocketConnectAsyncID, sory. > > but my code still doesn't work fine. > sometimes I got segfault > [snipp] > can this be a problem with my code? > Just a general hint: try running valgrind (http://valgrind.kde.org/). Perhaps that gives you more insight. Andy --=20 Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.= at http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B= 62 Python is executable pseudocode, Perl is executable line-noise. From H.Sokolowski@wsisiz.edu.pl Wed Feb 25 10:07:04 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 23098 invoked from network); 25 Feb 2004 10:07:03 -0000 Received: from kh106.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.17.106) by widget.gizmolabs.org with SMTP; 25 Feb 2004 10:07:03 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 4219118478A; Wed, 25 Feb 2004 11:08:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 38229184789 for ; Wed, 25 Feb 2004 11:08:22 +0100 (CET) Date: Wed, 25 Feb 2004 11:08:22 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Subject: Re: [gnet] cancelling async connections In-Reply-To: <87ad39suwh.fsf@alice.rotty.yi.org> Message-ID: References: <87ad39suwh.fsf@alice.rotty.yi.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 10:07:04 -0000 On Mon, 23 Feb 2004, Andreas Rottmann wrote: > Just a general hint: try running valgrind > (http://valgrind.kde.org/). Perhaps that gives you more insight. Connecting to idi.tlen.pl:80... ==28991== valgrind's libpthread.so: IGNORED call to: pthread_attr_destroy --- tlen_connection_close --- Cancelling connection ==28991== ==28991== Invalid write of size 4 ==28991== at 0x4065A26B: gnet_tcp_socket_connect_inetaddr_cb (tcp.c:124) ==28991== by 0x406579FE: inetaddr_new_list_async_pthread_dispatch (inetaddr.c:1199) ==28991== by 0x4060D972: (within /usr/lib/libglib-2.0.so.0.200.3) ==28991== by 0x4060ACFF: (within /usr/lib/libglib-2.0.so.0.200.3) ==28991== Address 0x43471F08 is 8 bytes inside a block of size 28 free'd ==28991== at 0x40029E8B: free (vg_replace_malloc.c:231) ==28991== by 0x40610903: g_free (in /usr/lib/libglib-2.0.so.0.200.3) ==28991== by 0x4065A439: gnet_tcp_socket_connect_async_cancel (tcp.c:256) this part repeats few times and connection is established, not canceled. there are no examples in gnet sources of cancelling async connections. can you give me some example? maybe I do something wrong. what happens after I cancel connection? is the callback called after cancel? regards hs~ From dhelder@gizmolabs.org Wed Feb 18 04:00:22 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 69343 invoked from network); 18 Feb 2004 04:00:21 -0000 Received: from pcp08840538pcs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.43.196.47) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 18 Feb 2004 04:00:21 -0000 From: "David A. Helder" To: gnet-dev@lists.gnetlibrary.org Content-Type: text/plain Message-Id: <1077076790.93288.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 17 Feb 2004 22:59:50 -0500 Content-Transfer-Encoding: 7bit Cc: gnet@lists.gnetlibrary.org Subject: [gnet-dev] New snapshot X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 04:00:22 -0000 Here is the latest snapshot. If this is stable, this will become GNet 2.0.5. http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz David -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From H.Sokolowski@wsisiz.edu.pl Wed Feb 18 08:22:14 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 13523 invoked from network); 18 Feb 2004 08:22:12 -0000 Received: from kr2.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.27.2) by widget.gizmolabs.org with SMTP; 18 Feb 2004 08:22:12 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 9C4EA18478A; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 9AAA6184789; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Date: Wed, 18 Feb 2004 09:22:38 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: "David A. Helder" In-Reply-To: <1077076790.93288.13.camel@localhost> Message-ID: References: <1077076790.93288.13.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: gnet-dev@lists.gnetlibrary.org, gnet@lists.gnetlibrary.org Subject: [gnet-dev] Re: [gnet] New snapshot X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 08:22:14 -0000 On Tue, 17 Feb 2004, David A. Helder wrote: > Here is the latest snapshot. If this is stable, this will become GNet > 2.0.5. > > http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz thanks, I will test it on linux and windows. hs From dhelder@gizmolabs.org Tue Feb 24 02:16:10 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 22237 invoked from network); 24 Feb 2004 02:16:10 -0000 Received: from pcp08840538pcs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.43.196.47) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 24 Feb 2004 02:16:10 -0000 From: "David A. Helder" To: gnet-dev@lists.gnetlibrary.org Content-Type: text/plain Message-Id: <1077588939.9065.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 23 Feb 2004 21:15:39 -0500 Content-Transfer-Encoding: 7bit Subject: [gnet-dev] Has anyone tried the snapshot? X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 02:16:10 -0000 Has anyone tried the snapshot? David -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From benjamin.lee@realthought.net Tue Feb 24 03:45:11 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 58691 invoked from network); 24 Feb 2004 03:45:10 -0000 Received: from dsl-203-113-221-151.vic.netspace.net.au (HELO xaos.realthought.net) (203.113.221.151) by widget.gizmolabs.org with SMTP; 24 Feb 2004 03:45:10 -0000 Received: by xaos.realthought.net (Postfix, from userid 500) id 64B1A4E61C; Tue, 24 Feb 2004 14:45:08 +1100 (EST) Date: Tue, 24 Feb 2004 14:45:08 +1100 From: Benjamin Lee To: "David A. Helder" Subject: Re: [gnet-dev] Has anyone tried the snapshot? Message-ID: <20040224034508.GA27973@xaos.realthought.net> References: <1077588939.9065.3.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1077588939.9065.3.camel@localhost> X-Revolution: #9 X-blank: blah X-Mailman-Approved-At: Mon, 23 Feb 2004 23:44:14 -0500 Cc: gnet-dev@lists.gnetlibrary.org X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 03:45:12 -0000 I did a quick sanity rpmbuild -ta on i386 RedHat 9 / Fedora Core which worked fine. But I haven't used the library against any software yet. ;-P I'm sure it's fine though! Hehehe... On Tuesday, 2004-02-24 at 01:15:39 PM, David A. Helder scribbled: > Has anyone tried the snapshot? > > David > -- Benjamin Lee Melbourne, Australia +61 416 BEN LEE http://www.realthought.net/ __________________________________________________________________________ The world is full of people who have never, since childhood, met an open doorway with an open mind. -- E.B. White From H.Sokolowski@wsisiz.edu.pl Tue Feb 24 13:52:46 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 68450 invoked from network); 24 Feb 2004 13:52:45 -0000 Received: from kh106.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.17.106) by widget.gizmolabs.org with SMTP; 24 Feb 2004 13:52:45 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 7D92718478A; Tue, 24 Feb 2004 14:53:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 78E75184789; Tue, 24 Feb 2004 14:53:53 +0100 (CET) Date: Tue, 24 Feb 2004 14:53:53 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: "David A. Helder" Subject: Re: [gnet-dev] Has anyone tried the snapshot? In-Reply-To: <1077588939.9065.3.camel@localhost> Message-ID: References: <1077588939.9065.3.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: gnet-dev@lists.gnetlibrary.org X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 13:52:46 -0000 On Mon, 23 Feb 2004, David A. Helder wrote: > Has anyone tried the snapshot? > yes, I did, but only on linux for now. and only client connections in async mode. I had problems with canceling connections, but that problem I described on gnet list. apart from that, the snapshot works fine. From rodrigo.cabeceiras@tvtel.pt Mon Feb 02 20:57:31 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 72706 invoked by uid 1000); 2 Feb 2004 20:57:31 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 72695 invoked from network); 2 Feb 2004 20:57:30 -0000 Received: from unknown (HELO free.tvtel.pt) (0@82.102.32.75) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 2 Feb 2004 20:57:30 -0000 Received: from mail2.expernet.pt ([82.102.32.65]) by free.tvtel.pt (8.12.10/8.12.10) with ESMTP id i12KoZAD021069 for ; Mon, 2 Feb 2004 20:50:35 GMT Received: from asusp4 ([82.102.47.57]) by mail2.expernet.pt (8.12.8/8.11.4) with ESMTP id i12KkgQU031900 for ; Mon, 2 Feb 2004 20:46:51 GMT From: "Rodrigo Cabeceiras" To: Date: Mon, 2 Feb 2004 20:55:29 -0000 Message-ID: <002101c3e9ce$e7aceb70$6900a8c0@asusp4> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0022_01C3E9CE.E7ACEB70" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal X-Virus-Scanned: by AMaViS-ng ( for Tvtel.Pt ) Cc: Subject: [gnet] examples mcast X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 20:57:32 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0022_01C3E9CE.E7ACEB70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, does any one has any example of multicast client/server, i have been unable to put them to work. If any one could help=85. =20 =20 Tks, Rodrigo=20 =20 *********************************** =20 Rodrigo de Meneses Barcelos Cabeceiras Rua do Ameal n=BA.507 5=BAEsq. 4200-061 Porto Tel. 917776045 =20 msn: rodrigo.cabeceiras@tvtel.pt =20 Web www.rodrigocabeceiras.pt.to =20 *********************************** =20 ------=_NextPart_000_0022_01C3E9CE.E7ACEB70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi, does any one has = any example of multicast client/server, i have = been unable to put them to work. If any one could = help….

 

 

Tks<= /span>, Rodrigo

 

***********************************

 

Rodrigo de Meneses Barcelos = Cabeceiras

Rua do Ameal n=BA.507 = 5=BAEsq.

4200-061 Porto

Tel. 917776045

 

msn: rodrigo.cabeceiras@tvtel.pt    

Web = www.rodrigocabeceiras.pt.to<= /span>

=

 = ;

*****= ******************************

 

------=_NextPart_000_0022_01C3E9CE.E7ACEB70-- From dhelder@gizmolabs.org Tue Feb 03 02:46:07 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 41570 invoked by uid 1000); 3 Feb 2004 02:46:07 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 41563 invoked from network); 3 Feb 2004 02:46:07 -0000 Received: from bgp995024bgs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.40.44.45) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 3 Feb 2004 02:46:07 -0000 Subject: Re: [gnet] examples mcast From: "David A. Helder" To: Rodrigo Cabeceiras In-Reply-To: <002101c3e9ce$e7aceb70$6900a8c0@asusp4> References: <002101c3e9ce$e7aceb70$6900a8c0@asusp4> Content-Type: text/plain; charset=UTF-8 Message-Id: <1075776335.72939.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 02 Feb 2004 21:45:35 -0500 Content-Transfer-Encoding: 8bit Cc: gnet@gnetlibrary.org X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 02:46:08 -0000 Did you try the examples included with GNet? David On Mon, 2004-02-02 at 15:55, Rodrigo Cabeceiras wrote: > Hi, does any one has any example of multicast client/server, i have > been unable to put them to work. If any one could help…. > > > > > > Tks, Rodrigo > > > > *********************************** > > > > Rodrigo de Meneses Barcelos Cabeceiras > > Rua do Ameal nº.507 5ºEsq. > > 4200-061 Porto > > Tel. 917776045 > > > > msn: rodrigo.cabeceiras@tvtel.pt > > Web www.rodrigocabeceiras.pt.to > > > > *********************************** > > > > > > ______________________________________________________________________ > _______________________________________________ > gnet mailing list > gnet@lists.gnetlibrary.org > http://lists.gizmolabs.org/mailman/listinfo/gnet -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From rodrigo.cabeceiras@tvtel.pt Tue Feb 03 16:05:02 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 80643 invoked by uid 1000); 3 Feb 2004 16:05:02 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 80490 invoked from network); 3 Feb 2004 16:04:59 -0000 Received: from damao.dee.isep.ipp.pt (root@193.136.63.3) by widget.gizmolabs.org with SMTP; 3 Feb 2004 16:04:59 -0000 Received: from asusp4 (deedin30.dee.isep.ipp.pt [193.136.61.229]) by damao.dee.isep.ipp.pt (8.11.6/8.9.3) with ESMTP id i13GQtJ05675 for ; Tue, 3 Feb 2004 16:26:55 GMT From: "Rodrigo Cabeceiras" To: Subject: RE: [gnet] examples mcast Date: Tue, 3 Feb 2004 16:04:29 -0000 Message-ID: <000201c3ea6f$6b131cf0$e53d88c1@asusp4> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal In-Reply-To: <1075776335.72939.0.camel@localhost> Cc: X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 16:05:02 -0000 Hi, gnet has no examples for mcast, i tried to change the udp examples but no result, i'm studing the examples but, it would more efective if i have something that worked. Tks=20 *********************************** =20 Rodrigo de Meneses Barcelos Cabeceiras Rua do Ameal n=BA.507 5=BAEsq. 4200-061 Porto Tel. 917776045 =20 msn: rodrigo.cabeceiras@tvtel.pt =20 Web www.rodrigocabeceiras.pt.to =20 *********************************** =20 -----Original Message----- From: David A. Helder [mailto:dhelder@gizmolabs.org]=20 Sent: ter=E7a-feira, 3 de Fevereiro de 2004 2:46 To: Rodrigo Cabeceiras Cc: gnet@gnetlibrary.org Subject: Re: [gnet] examples mcast Did you try the examples included with GNet? David On Mon, 2004-02-02 at 15:55, Rodrigo Cabeceiras wrote: > Hi, does any one has any example of multicast client/server, i have > been unable to put them to work. If any one could help=85. >=20 > =20 >=20 > =20 >=20 > Tks, Rodrigo=20 >=20 > =20 >=20 > *********************************** >=20 > =20 >=20 > Rodrigo de Meneses Barcelos Cabeceiras >=20 > Rua do Ameal n=BA.507 5=BAEsq. >=20 > 4200-061 Porto >=20 > Tel. 917776045 >=20 > =20 >=20 > msn: rodrigo.cabeceiras@tvtel.pt =20 >=20 > Web www.rodrigocabeceiras.pt.to >=20 > =20 >=20 > *********************************** >=20 > =20 >=20 >=20 >=20 > ______________________________________________________________________ > _______________________________________________ > gnet mailing list > gnet@lists.gnetlibrary.org > http://lists.gizmolabs.org/mailman/listinfo/gnet --=20 David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From H.Sokolowski@wsisiz.edu.pl Wed Feb 04 12:06:22 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 90666 invoked from network); 4 Feb 2004 12:06:22 -0000 Received: from kv84.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.31.84) by widget.gizmolabs.org with SMTP; 4 Feb 2004 12:06:22 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 0E213184399; Wed, 4 Feb 2004 13:06:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id EDBFB184398 for ; Wed, 4 Feb 2004 13:06:57 +0100 (CET) Date: Wed, 4 Feb 2004 13:06:57 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gnet] simultaneous asynchronic connections X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 12:06:23 -0000 hi! what is the limit of maximum asynchronous connections for client in gnet-2.0.4? I can only do about 1k connections at the same time, but I don't know if this is a gnet problem or server I am connecting to. btw. when are you planing to release gnet-2.0.5? greetings hs From tim-mailinglists@zen.co.uk Wed Feb 04 12:19:25 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 94917 invoked from network); 4 Feb 2004 12:19:24 -0000 Received: from heisenberg.zen.co.uk (212.23.8.70) by widget.gizmolabs.org with SMTP; 4 Feb 2004 12:19:24 -0000 Received: from dsl-217-155-195-89.zen.co.uk ([217.155.195.89] helo=192.168.0.2) by heisenberg.zen.co.uk with esmtp (Exim 4.22) id 1AoM02-0007pa-Ne; Wed, 04 Feb 2004 12:19:22 +0000 From: Tim =?utf-8?q?M=C3=BCller?= To: Hubert =?utf-8?q?Soko=C5=82owski?= , gnet@lists.gnetlibrary.org Subject: Re: [gnet] simultaneous asynchronic connections Date: Wed, 4 Feb 2004 12:19:21 +0000 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200402041219.21820.tim-mailinglists@zen.co.uk> X-Originating-Heisenberg-IP: [217.155.195.89] Cc: X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 12:19:25 -0000 On Wednesday 04 February 2004 12:06, Hubert Sokołowski wrote: > what is the limit of maximum asynchronous connections for client in > gnet-2.0.4? I can only do about 1k connections at the same time, but I > don't know if this is a gnet problem or server I am connecting to. I very much doubt that this is an internal gnet limit. There is a system limit for the maximum number of file descriptors that a user on the system can have open at the same time. You can see this limit when you type % ulimit -n in a bash shell (different for other shells). This limit seems to be 1024 by default on a lot of systems, so if you want more concurrent connections you will probably need to change this setting in your system settings [*]. Of course it is also possible that the same limit applies to the server. Cheers -Tim [*] for what it's worth, you can find some pointers on how and where to change that limit on your system here: http://ed2k-gtk-gui.sourceforge.net/docs/en-5.html#ss5.20 From H.Sokolowski@wsisiz.edu.pl Wed Feb 04 12:39:20 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 2136 invoked from network); 4 Feb 2004 12:39:20 -0000 Received: from kv84.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.31.84) by widget.gizmolabs.org with SMTP; 4 Feb 2004 12:39:20 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id AF019184399; Wed, 4 Feb 2004 13:39:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id AD2FC184398 for ; Wed, 4 Feb 2004 13:39:56 +0100 (CET) Date: Wed, 4 Feb 2004 13:39:56 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Subject: Re: [gnet] simultaneous asynchronic connections In-Reply-To: <200402041219.21820.tim-mailinglists@zen.co.uk> Message-ID: References: <200402041219.21820.tim-mailinglists@zen.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 12:39:21 -0000 > [*] for what it's worth, you can find some pointers on how and where to change > that limit on your system here: > http://ed2k-gtk-gui.sourceforge.net/docs/en-5.html#ss5.20 thanks, I forgot about this limit. From rodrigo.cabeceiras@tvtel.pt Wed Feb 04 16:15:56 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 90272 invoked by uid 1000); 4 Feb 2004 16:15:54 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 90228 invoked from network); 4 Feb 2004 16:15:42 -0000 Received: from damao.dee.isep.ipp.pt (root@193.136.63.3) by widget.gizmolabs.org with SMTP; 4 Feb 2004 16:15:42 -0000 Received: from asusp4 (deedin30.dee.isep.ipp.pt [193.136.61.229]) by damao.dee.isep.ipp.pt (8.11.6/8.9.3) with ESMTP id i14GbdJ31959 for ; Wed, 4 Feb 2004 16:37:39 GMT From: "Rodrigo Cabeceiras" To: Date: Wed, 4 Feb 2004 16:15:17 -0000 Message-ID: <000001c3eb3a$188425d0$e53d88c1@asusp4> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C3EB3A.188425D0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Cc: Subject: [gnet] sizeof buffer recived whit udp socket X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 16:15:58 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C3EB3A.188425D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I=92m using the udp socket examples of gnet, i recive a =93gchar buffer[1024]=94, but my buffer is a xml and to parse it I can not have more data in the buffer other than xml itself. So the buffer I receive is 1024 long and contains 150 chars (that is the size of my xml). Hoe can I reduce de buffer from 1024 to the size odf what is inside? Can I copy the buffer until the =93\0=94 (EOF), so that when I pass the = parser it receives only xml data? =20 Please If any one could give a hint .. Tks, Rodrigo =20 =20 *********************************** =20 Rodrigo de Meneses Barcelos Cabeceiras Rua do Ameal n=BA.507 5=BAEsq. 4200-061 Porto Tel. 917776045 =20 msn: rodrigo.cabeceiras@tvtel.pt =20 Web www.rodrigocabeceiras.pt.to =20 *********************************** =20 ------=_NextPart_000_0001_01C3EB3A.188425D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

I’m using the = udp socket examples of gnet, i recive a = “gchar buffer[1024]”, but my buffer is a xml and to parse it I can not have more data in the buffer = other than xml itself. So the buffer I receive is 1024 long and contains 150 = chars (that is the size of my xml). Hoe can I reduce de buffer from 1024 to = the size odf what is inside?=A0=A0=A0 Can I copy the buffer until the “\0” (EOF), so that = when I pass the parser it receives only xml data?

 

Please If any one = could give a hint ..

Tks<= /span>, Rodrigo

 

 

***********************************

 

Rodrigo de Meneses Barcelos = Cabeceiras

Rua do Ameal n=BA.507 = 5=BAEsq.

4200-061 Porto

Tel. 917776045

 

msn: rodrigo.cabeceiras@tvtel.pt    

Web = www.rodrigocabeceiras.pt.to<= /span>

=

 = ;

*****= ******************************

 

------=_NextPart_000_0001_01C3EB3A.188425D0-- From rapacity@quex.org Thu Feb 05 04:51:26 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 52448 invoked by uid 1000); 5 Feb 2004 04:51:26 -0000 Delivered-To: dhelder-gnetlibrary-gnet@gnetlibrary.org Received: (qmail 52439 invoked from network); 5 Feb 2004 04:51:24 -0000 Received: from morbid.quex.org (@203.34.17.234) by widget.gizmolabs.org with SMTP; 5 Feb 2004 04:51:24 -0000 Received: by morbid.quex.org (Postfix, from userid 1000) id 332FD25462; Thu, 5 Feb 2004 12:51:09 +0800 (WST) Date: Thu, 5 Feb 2004 12:51:09 +0800 From: Michael Alger To: gnet@gnetlibrary.org Subject: Re: [gnet] sizeof buffer recived whit udp socket Message-ID: <20040205045108.GA15739@quex.org> References: <000001c3eb3a$188425d0$e53d88c1@asusp4> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <000001c3eb3a$188425d0$e53d88c1@asusp4> User-Agent: Mutt/1.5.5.1+cvs20040105i Cc: X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 04:51:26 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 04, 2004 at 04:15:17PM -0000, Rodrigo Cabeceiras wrote: > I?m using the udp socket examples of gnet, i recive a ?gchar > buffer[1024]?, but my buffer is a xml and to parse it I can not have > more data in the buffer other than xml itself. So the buffer I receive > is 1024 long and contains 150 chars (that is the size of my xml). Hoe > can I reduce de buffer from 1024 to the size odf what is inside? Can > I copy the buffer until the ?\0? (EOF), so that when I pass the parser > it receives only xml data? The actual size of the buffer should be irrelevant. Either the XML parser needs to be told how many bytes (or characters) it should parse, or it will parse all data up to a terminator, typically NUL (0x00). C doesn't have a facility to pass an entire array to a function, only a pointer to the start of the array. It's up to the function to decide how long it is; either by assuming a particular length or, more commonly, by having an extra parameter to indicate the length of the array/buffer/string. Some functions (such as strcmp()) assume the data is terminated with a special character, and so don't need to be told the length of the buffer explicitly. Typically you'll have a function which looks like: parse_xml_buffer (const char *buffer, int length) In this case, 'buffer' is just the start of the data you received, and 'length' is the number of bytes you received. It doesn't matter if the buffer is 1500 bytes and you tell the function the length is 150; it has no way of knowing the actual size of the buffer, and will only try to parse what you told it to. The inverse applies too: if the buffer is 1500 bytes and you tell the function it's 40000, it will try to parse data beyond the end of the buffer, typically resulting in the program crashing. I seem to recall the UDP functions return the length of the received data, so you should be able to just use that for the size. If it says you received more than you were expecting, you should print out the buffer (or use something like ethereal to view the network traffic) and see exactly what it is you're receiving. Mike. --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAIcu8eEOejZTV05YRAjcFAKCUVvzp5NP47PVitheYxcL/jbNKAQCeKHD+ re1qDBtrv2DJusAlsjwfczY= =1VG2 -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- From dhelder@gizmolabs.org Wed Feb 18 04:00:22 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 69343 invoked from network); 18 Feb 2004 04:00:21 -0000 Received: from pcp08840538pcs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.43.196.47) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 18 Feb 2004 04:00:21 -0000 From: "David A. Helder" To: gnet-dev@lists.gnetlibrary.org Content-Type: text/plain Message-Id: <1077076790.93288.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 17 Feb 2004 22:59:50 -0500 Content-Transfer-Encoding: 7bit Cc: gnet@lists.gnetlibrary.org Subject: [gnet] New snapshot X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 04:00:22 -0000 Here is the latest snapshot. If this is stable, this will become GNet 2.0.5. http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz David -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From H.Sokolowski@wsisiz.edu.pl Wed Feb 18 08:22:14 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 13523 invoked from network); 18 Feb 2004 08:22:12 -0000 Received: from kr2.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.27.2) by widget.gizmolabs.org with SMTP; 18 Feb 2004 08:22:12 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 9C4EA18478A; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 9AAA6184789; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Date: Wed, 18 Feb 2004 09:22:38 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: "David A. Helder" Subject: Re: [gnet] New snapshot In-Reply-To: <1077076790.93288.13.camel@localhost> Message-ID: References: <1077076790.93288.13.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: gnet-dev@lists.gnetlibrary.org, gnet@lists.gnetlibrary.org X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 08:22:14 -0000 On Tue, 17 Feb 2004, David A. Helder wrote: > Here is the latest snapshot. If this is stable, this will become GNet > 2.0.5. > > http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz thanks, I will test it on linux and windows. hs From H.Sokolowski@wsisiz.edu.pl Mon Feb 23 14:20:35 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 5878 invoked from network); 23 Feb 2004 14:20:35 -0000 Received: from kg4.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.16.4) by widget.gizmolabs.org with SMTP; 23 Feb 2004 14:20:35 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 0634C18478A; Mon, 23 Feb 2004 15:21:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 0074E184789 for ; Mon, 23 Feb 2004 15:21:39 +0100 (CET) Date: Mon, 23 Feb 2004 15:21:39 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gnet] cancelling async connection X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 14:20:36 -0000 hi! I try to connect with gnet_tcp_socket_connect_async but before the callback is called I do gnet_tcp_socket_connect_async_cancel then I get GNet-CRITICAL **: file tcp.c: line 231 (gnet_tcp_socket_connect_async_cancel): assertion `state != NULL' failed what I do wrong? thanks in advance hs From H.Sokolowski@wsisiz.edu.pl Mon Feb 23 14:40:21 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 13823 invoked from network); 23 Feb 2004 14:40:21 -0000 Received: from kg4.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.16.4) by widget.gizmolabs.org with SMTP; 23 Feb 2004 14:40:21 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id E6E1D18478A; Mon, 23 Feb 2004 15:41:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id E4B4B184789 for ; Mon, 23 Feb 2004 15:41:27 +0100 (CET) Date: Mon, 23 Feb 2004 15:41:27 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gnet] cancelling async connections X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 14:40:22 -0000 I forgot to save GTcpSocketConnectAsyncID, sory. but my code still doesn't work fine. sometimes I got segfault (gdb) info stack #0 0x00000000 in ?? () #1 0x4044c31c in gnet_tcp_socket_connect_tcp_cb (socket=0x813c0a0, data=0x81394c8) at tcp.c:180 #2 0x4044c9d0 in gnet_tcp_socket_new_async_cb (iochannel=0x8118c78, condition=G_IO_OUT, data=0x81394c8) at tcp.c:510 #3 0x4041e2df in g_vsnprintf () from /usr/lib/libglib-2.0.so.0 #4 0x403fcd00 in unblock_source () from /usr/lib/libglib-2.0.so.0 #5 0x403fdd98 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #6 0x403fe0ad in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #7 0x403fe7cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 can this be a problem with my code? From a.rottmann@gmx.at Mon Feb 23 15:01:11 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 27722 invoked from network); 23 Feb 2004 15:01:10 -0000 Received: from mail.gmx.de (HELO mail.gmx.net) (213.165.64.20) by widget.gizmolabs.org with SMTP; 23 Feb 2004 15:01:10 -0000 Received: (qmail 6158 invoked by uid 65534); 23 Feb 2004 15:00:39 -0000 Received: from chello212186006140.401.14.univie.teleweb.at (EHLO garibaldi) (212.186.6.140) by mail.gmx.net (mp026) with SMTP; 23 Feb 2004 16:00:39 +0100 X-Authenticated: #3102804 Received: from ivanova.rhinosaur.lan ([192.168.1.9] helo=ivanova) by garibaldi with esmtp (Exim 4.30) id 1AvHZP-0003Pa-9j; Mon, 23 Feb 2004 16:00:31 +0100 Received: from andy by ivanova with local (Exim 4.30) id 1AvHZP-0008Qw-6D; Mon, 23 Feb 2004 16:00:31 +0100 To: =?utf-8?q?Hubert_Soko=C5=82owski?= Subject: Re: [gnet] cancelling async connections References: From: Andreas Rottmann Date: Mon, 23 Feb 2004 16:00:30 +0100 In-Reply-To: (Hubert =?utf-8?q?Soko=C5=82owski's?= message of "Mon, 23 Feb 2004 15:41:27 +0100 (CET)") Message-ID: <87ad39suwh.fsf@alice.rotty.yi.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: Andreas Rottmann X-Spam-Score: -4.9 (----) X-Spam-Report: Spam detection software, running on the system "garibaldi", has analyzed this incoming email. Results are shown below. Content analysis details: (-4.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Cc: gnet@lists.gnetlibrary.org X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 15:01:12 -0000 Hubert Soko=C5=82owski writes: > I forgot to save GTcpSocketConnectAsyncID, sory. > > but my code still doesn't work fine. > sometimes I got segfault > [snipp] > can this be a problem with my code? > Just a general hint: try running valgrind (http://valgrind.kde.org/). Perhaps that gives you more insight. Andy --=20 Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.= at http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B= 62 Python is executable pseudocode, Perl is executable line-noise. From H.Sokolowski@wsisiz.edu.pl Wed Feb 25 10:07:04 2004 Return-Path: Delivered-To: mailman-gnet@lists.gnetlibrary.org Received: (qmail 23098 invoked from network); 25 Feb 2004 10:07:03 -0000 Received: from kh106.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.17.106) by widget.gizmolabs.org with SMTP; 25 Feb 2004 10:07:03 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 4219118478A; Wed, 25 Feb 2004 11:08:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 38229184789 for ; Wed, 25 Feb 2004 11:08:22 +0100 (CET) Date: Wed, 25 Feb 2004 11:08:22 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: gnet@lists.gnetlibrary.org Subject: Re: [gnet] cancelling async connections In-Reply-To: <87ad39suwh.fsf@alice.rotty.yi.org> Message-ID: References: <87ad39suwh.fsf@alice.rotty.yi.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: gnet@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for users and programmers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 10:07:04 -0000 On Mon, 23 Feb 2004, Andreas Rottmann wrote: > Just a general hint: try running valgrind > (http://valgrind.kde.org/). Perhaps that gives you more insight. Connecting to idi.tlen.pl:80... ==28991== valgrind's libpthread.so: IGNORED call to: pthread_attr_destroy --- tlen_connection_close --- Cancelling connection ==28991== ==28991== Invalid write of size 4 ==28991== at 0x4065A26B: gnet_tcp_socket_connect_inetaddr_cb (tcp.c:124) ==28991== by 0x406579FE: inetaddr_new_list_async_pthread_dispatch (inetaddr.c:1199) ==28991== by 0x4060D972: (within /usr/lib/libglib-2.0.so.0.200.3) ==28991== by 0x4060ACFF: (within /usr/lib/libglib-2.0.so.0.200.3) ==28991== Address 0x43471F08 is 8 bytes inside a block of size 28 free'd ==28991== at 0x40029E8B: free (vg_replace_malloc.c:231) ==28991== by 0x40610903: g_free (in /usr/lib/libglib-2.0.so.0.200.3) ==28991== by 0x4065A439: gnet_tcp_socket_connect_async_cancel (tcp.c:256) this part repeats few times and connection is established, not canceled. there are no examples in gnet sources of cancelling async connections. can you give me some example? maybe I do something wrong. what happens after I cancel connection? is the callback called after cancel? regards hs~ From dhelder@gizmolabs.org Wed Feb 18 04:00:22 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 69343 invoked from network); 18 Feb 2004 04:00:21 -0000 Received: from pcp08840538pcs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.43.196.47) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 18 Feb 2004 04:00:21 -0000 From: "David A. Helder" To: gnet-dev@lists.gnetlibrary.org Content-Type: text/plain Message-Id: <1077076790.93288.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 17 Feb 2004 22:59:50 -0500 Content-Transfer-Encoding: 7bit Cc: gnet@lists.gnetlibrary.org Subject: [gnet-dev] New snapshot X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 04:00:22 -0000 Here is the latest snapshot. If this is stable, this will become GNet 2.0.5. http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz David -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From H.Sokolowski@wsisiz.edu.pl Wed Feb 18 08:22:14 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 13523 invoked from network); 18 Feb 2004 08:22:12 -0000 Received: from kr2.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.27.2) by widget.gizmolabs.org with SMTP; 18 Feb 2004 08:22:12 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 9C4EA18478A; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 9AAA6184789; Wed, 18 Feb 2004 09:22:38 +0100 (CET) Date: Wed, 18 Feb 2004 09:22:38 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: "David A. Helder" In-Reply-To: <1077076790.93288.13.camel@localhost> Message-ID: References: <1077076790.93288.13.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: gnet-dev@lists.gnetlibrary.org, gnet@lists.gnetlibrary.org Subject: [gnet-dev] Re: [gnet] New snapshot X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 08:22:14 -0000 On Tue, 17 Feb 2004, David A. Helder wrote: > Here is the latest snapshot. If this is stable, this will become GNet > 2.0.5. > > http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz thanks, I will test it on linux and windows. hs From dhelder@gizmolabs.org Tue Feb 24 02:16:10 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 22237 invoked from network); 24 Feb 2004 02:16:10 -0000 Received: from pcp08840538pcs.nanarb01.mi.comcast.net (HELO ?192.168.0.2?) (dhelder@68.43.196.47) by widget.gizmolabs.org with DES-CBC3-SHA encrypted SMTP; 24 Feb 2004 02:16:10 -0000 From: "David A. Helder" To: gnet-dev@lists.gnetlibrary.org Content-Type: text/plain Message-Id: <1077588939.9065.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 23 Feb 2004 21:15:39 -0500 Content-Transfer-Encoding: 7bit Subject: [gnet-dev] Has anyone tried the snapshot? X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 02:16:10 -0000 Has anyone tried the snapshot? David -- David Helder - dhelder@gizmolabs.org - http://www.gizmolabs.org/~dhelder From benjamin.lee@realthought.net Tue Feb 24 03:45:11 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 58691 invoked from network); 24 Feb 2004 03:45:10 -0000 Received: from dsl-203-113-221-151.vic.netspace.net.au (HELO xaos.realthought.net) (203.113.221.151) by widget.gizmolabs.org with SMTP; 24 Feb 2004 03:45:10 -0000 Received: by xaos.realthought.net (Postfix, from userid 500) id 64B1A4E61C; Tue, 24 Feb 2004 14:45:08 +1100 (EST) Date: Tue, 24 Feb 2004 14:45:08 +1100 From: Benjamin Lee To: "David A. Helder" Subject: Re: [gnet-dev] Has anyone tried the snapshot? Message-ID: <20040224034508.GA27973@xaos.realthought.net> References: <1077588939.9065.3.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1077588939.9065.3.camel@localhost> X-Revolution: #9 X-blank: blah X-Mailman-Approved-At: Mon, 23 Feb 2004 23:44:14 -0500 Cc: gnet-dev@lists.gnetlibrary.org X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 03:45:12 -0000 I did a quick sanity rpmbuild -ta on i386 RedHat 9 / Fedora Core which worked fine. But I haven't used the library against any software yet. ;-P I'm sure it's fine though! Hehehe... On Tuesday, 2004-02-24 at 01:15:39 PM, David A. Helder scribbled: > Has anyone tried the snapshot? > > David > -- Benjamin Lee Melbourne, Australia +61 416 BEN LEE http://www.realthought.net/ __________________________________________________________________________ The world is full of people who have never, since childhood, met an open doorway with an open mind. -- E.B. White From H.Sokolowski@wsisiz.edu.pl Tue Feb 24 13:52:46 2004 Return-Path: Delivered-To: mailman-gnet-dev@lists.gnetlibrary.org Received: (qmail 68450 invoked from network); 24 Feb 2004 13:52:45 -0000 Received: from kh106.neoplus.adsl.tpnet.pl (HELO neo.neostrada.pl) (83.26.17.106) by widget.gizmolabs.org with SMTP; 24 Feb 2004 13:52:45 -0000 Received: by neo.neostrada.pl (Postfix, from userid 1000) id 7D92718478A; Tue, 24 Feb 2004 14:53:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.neostrada.pl (Postfix) with ESMTP id 78E75184789; Tue, 24 Feb 2004 14:53:53 +0100 (CET) Date: Tue, 24 Feb 2004 14:53:53 +0100 (CET) From: =?iso-8859-2?Q?Hubert_Soko=B3owski?= X-X-Sender: who@neo.neostrada.pl To: "David A. Helder" Subject: Re: [gnet-dev] Has anyone tried the snapshot? In-Reply-To: <1077588939.9065.3.camel@localhost> Message-ID: References: <1077588939.9065.3.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: gnet-dev@lists.gnetlibrary.org X-BeenThere: gnet-dev@lists.gnetlibrary.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Discussion of GNet for the developers of GNet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 13:52:46 -0000 On Mon, 23 Feb 2004, David A. Helder wrote: > Has anyone tried the snapshot? > yes, I did, but only on linux for now. and only client connections in async mode. I had problems with canceling connections, but that problem I described on gnet list. apart from that, the snapshot works fine.