From MAILER-DAEMON Thu Jan 01 15:10:50 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Ac938-0006Qo-32
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Jan 2004 15:04:06 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Ac92p-0006Oy-6P
	for bug-commoncpp@gnu.org; Thu, 01 Jan 2004 15:03:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Ac92H-0006Ht-BU
	for bug-commoncpp@gnu.org; Thu, 01 Jan 2004 15:03:44 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Ac6Vu-0001eh-0i
	for bug-commoncpp@gnu.org; Thu, 01 Jan 2004 12:21:38 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1Ac5VZ-0006EL-8D
	for bug-commoncpp@gnu.org; Thu, 01 Jan 2004 11:17:13 -0500
Received: from sonne.kosmos.all (213-182-113-203.teleos-web.de
	[213.182.113.203])
	by sally.dts-online.net (Postfix) with ESMTP id CA89E49285D
	for <bug-commoncpp@gnu.org>; Thu,  1 Jan 2004 17:17:09 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 73D897B1B3
	for <bug-commoncpp@gnu.org>; Thu,  1 Jan 2004 17:11:26 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Thu, 1 Jan 2004 17:11:23 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401011711.23978.wolfgang@alper-online.com>
Subject: linking probs with ccext2 and cmdlineopt using w32 msys/mingw
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2004 20:04:03 -0000

Hello,
first of all a happy new year!!!

i have some problems when using the cmdline class within w32, but only during 
linking. the other stuff links fine.
i have to admit that i am no expert with msys and mingw.
however, the rest of the demo apps compile and link without any problem.

also i have to place my self compiled commonc++ dll's within the ./mytest dir, 
otherwise it does not link at all. however, the dll's should be at the right 
place.


p.s. i do not refer to the "deprecated or antiquated..." warnung but to 
"Info: resolving __ZN3ost24defaultCommandOptionListE by linking to 
__imp___ZN3ost24defaultCommandOptionListE (auto-import)"


//this looks not ok

wolfgang@SATURN ~/mytest
$ make cmdlineopt
mingw32-c++ -g -O2 -mthreads -I. -I/mingw/include/cc++2 -DHAVE_CONFIG_H 
-D_GNU_SOURCE -L. -L/mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32  
cmdlineopt.cpp   -o cmdlineopt
In file included from D:/APPS/DEVEL/MinGW/include/c++/3.2.3/backward/
strstream:51,
                 from cmdlineopt.cpp:164:
D:/APPS/DEVEL/MinGW/include/c++/3.2.3/backward/backward_warning.h:32:2: 
warning: #warning This file includes at least one deprecated or antiquated 
header. Please consider using one of the 32 headers found in section 17.4.1.2 
of the C++ standard. Examples include substituting the <X> header for the 
<X.h> header for C++ includes, or <sstream> instead of the deprecated header 
<strstream.h>. To disable this warning use -Wno-deprecated.
Info: resolving __ZN3ost24defaultCommandOptionListE by linking to 
__imp___ZN3ost24defaultCommandOptionListE (auto-import)
wolfgang@SATURN ~/mytest$ 


//this looks ok 

wolfgang@SATURN ~/mytest
$ make tcp
mingw32-c++ -g -O2 -mthreads -I. -I/mingw/include/cc++2 -DHAVE_CONFIG_H 
-D_GNU_SOURCE -L. -L/mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32  
tcp.cpp   -o tcp


//this looks ok 

wolfgang@SATURN ~/mytest
$ make crc32
mingw32-c++ -g -O2 -mthreads -I. -I/mingw/include/cc++2 -DHAVE_CONFIG_H 
-D_GNU_SOURCE -L. -L/mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32  
crc32.cpp   -o crc32







creation of dll's:
=====================
$ make -f Makefile.tst
dllwrap --export-all-symbols --output-def ccgnu2.def --implib libccgnu2.a 
--driver-name mingw32-c++ -o ccgnu2.dll \
thread.o mutex.o semaphore.o threadkey.o friends.o event.o slog.o dir.o file.o 
inaddr.o peer.o port.o socket.o network.o serial.o mempager.o keydata.o dso.o 
exception.o process.o urlstring.o libgnu2.o -L/mingw/dll -lws2_32
D:\APPS\DEVEL\MinGW\bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap --export-all-symbols --output-def ccext2.def --implib libccext2.a 
--driver-name mingw32-c++ -o ccext2.dll \
buffer.o fifo.o pipe.o numbers.o cmdoptns.o url.o persist.o engine.o digest.o 
sha.o date.o groups.o md5.o unix.o ftp.o libgnu2.o -L. -L/mingw/dll -lccgnu2  
-liberty -lws2_32
D:\APPS\DEVEL\MinGW\bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want


make install
============
wolfgang@SATURN ~/commoncpp2-1.0.13/win32
$ make -f Makefile.tst install
mkdir -p /mingw/include/cc++2/cc++
mkdir -p /mingw/dll
cp -af cc++/config.h ../include/cc++/thread.h ../include/cc++/socket.h ../
include/cc++/exception.h ../include/cc++/cmdoptns.h ../include/cc++/
digest.h ../include/cc++/export.h ../include/cc++/file.h ../include/cc++/
groups.h ../include/cc++/misc.h ../include/cc++/numbers.h ../include/cc++/
persist.h ../include/cc++/slog.h ../include/cc++/url.h ../include/cc++/
urlstring.h ../include/cc++/xml.h ../include/cc++/serial.h ../include/cc++/
strchar.h ../include/cc++/network.h /mingw/include/cc++2/cc++
cp -af libccgnu2.a ccgnu2.dll libccext2.a ccext2.dll /mingw/dll
cp -af libccgnu2.a /mingw/lib/libccgnu2dll.a
cp -af libccext2.a /mingw/lib/libccext2dll.a
strip /mingw/dll/ccgnu2.dll /mingw/dll/ccext2.dll
ar -rs /mingw/lib/libccgnu2.a thread.o mutex.o semaphore.o threadkey.o 
friends.o event.o slog.o dir.o file.o inaddr.o peer.o port.o socket.o 
network.o serial.o mempager.o keydata.o dso.o exception.o process.o 
urlstring.o
ar -rs /mingw/lib/libccext2.a buffer.o fifo.o pipe.o numbers.o cmdoptns.o 
url.o persist.o engine.o digest.o sha.o date.o groups.o md5.o unix.o ftp.o

wolfgang@SATURN ~/commoncpp2-1.0.13/win32
$ 



and the files:
=============
wolfgang@SATURN ~/commoncpp2-1.0.13/win32
$ ls /mingw/lib/libcc* -la
-rw-r--r--    1 wolfgang Administ 13103364 Jan  1 15:57 /mingw/lib/libccext2.a
-rw-r--r--    1 wolfgang Administ   569388 Jan  1 15:53 /mingw/lib/
libccext2dll.a
-rw-r--r--    1 wolfgang Administ 17491450 Jan  1 15:57 /mingw/lib/libccgnu2.a
-rw-r--r--    1 wolfgang Administ   632530 Jan  1 15:53 /mingw/lib/
libccgnu2dll.a


wolfgang@SATURN ~/commoncpp2-1.0.13/win32
$ ls /mingw/dll -la
-rwxr-xr-x    1 wolfgang Administ   390656 Jan  1 15:57 ccext2.dll
-rwxr-xr-x    1 wolfgang Administ   368128 Jan  1 15:57 ccgnu2.dll
-rw-r--r--    1 wolfgang Administ   569388 Jan  1 15:53 libccext2.a
-rw-r--r--    1 wolfgang Administ   632530 Jan  1 15:53 libccgnu2.a





From MAILER-DAEMON Thu Jan 01 22:02:24 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcFZn-0001T4-MV
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Jan 2004 22:02:15 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcFKm-0005NW-1i
	for bug-commoncpp@gnu.org; Thu, 01 Jan 2004 21:46:44 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcFF3-0004Ag-F1
	for bug-commoncpp@gnu.org; Thu, 01 Jan 2004 21:41:20 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AcElP-0006Em-DC
	for bug-commoncpp@gnu.org; Thu, 01 Jan 2004 21:10:11 -0500
Received: (qmail 13367 invoked by uid 0); 2 Jan 2004 01:08:38 -0000
Received: from 217.185.69.148 by www45.gmx.net with HTTP;
	Fri, 2 Jan 2004 02:08:38 +0100 (MET)
Date: Fri, 2 Jan 2004 02:08:38 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <18427.1073005718@www45.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Rearranging source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 03:02:13 -0000

I have started (almost done actually) to separate the networking code from
the base  
library to form a library called ccNet. Normally one class per .h/.cpp pair,
except for  
exception classes or the validator classes.  
  
Is there anything else we can modularise?  
  
I wasnt sure what the extension library is, but it seemed pretty generic to
me. I have put  
these classes in the base lib for now.  
  
Any thought on a naming scheme? ccNet seemed like the logical choice
(ccAudio,  
ccScript... already exist). How shall we call the base lib? libccBase? or
just libcc?  
  
How about the namespace Gnu::? after all this is an official gnu project,
isnt it?  
  
  
Marc  
  
  
On Saturday 27 December 2003 17:06, you wrote:  
> It could make it easier to find things, but some classes were so trivial. 

> Generally, source files are split by hiearchies of related classes and by 

> library (ccgnu, ccext), although in many cases a source file do cover a  
> single class and other cases a grouping of closely related classes.  
>  
> "Marc Boris Dürner" said:  
> > Hi,  
> > Just wondering if the source files could be split so that there is one  
> > class  
> > per file?  
> >  
> > regards,  
> > Marc  

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Fri Jan 02 10:11:40 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcQxg-0002Sm-0u
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 10:11:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcQxd-0002S2-38
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 10:11:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcQqe-0001pn-VC
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 10:04:56 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcQhM-0000wg-OX
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 09:54:48 -0500
Received: from sonne.kosmos.all (213-182-119-38.teleos-web.de [213.182.119.38])
	by sally.dts-online.net (Postfix) with ESMTP id BD57045C390
	for <bug-commoncpp@gnu.org>; Fri,  2 Jan 2004 14:53:18 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 499B57B1B3
	for <bug-commoncpp@gnu.org>; Fri,  2 Jan 2004 13:49:40 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Fri, 2 Jan 2004 13:49:37 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401021349.37450.wolfgang@alper-online.com>
Subject: "getTicks() in ms" to add for WIN32 and Linux to commonc++?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 15:11:37 -0000

Would it make sense to add a getTicks() type function to the CommonC++ 
framework? Or do you think it is so trivial that it does not need to be 
there? I run into this recently when porting a project from linux to win32 
using commonc++.
Here a draft for for win32 and linux.



#ifndef WIN32
#include <sys/time.h>
#else
#include <time.h>
#include <windows.h>
#endif //win32


//return number of ticks in ms
long getTicks();


ifdef WIN32
long getTicks() {
	return GetTickCount();
};
#else
long getTicks() {
	long ticks;
	struct timeval now;
	gettimeofday(&now, NULL);
	ticks = now.tv_sec * 1000l;
	ticks += now.tv_usec / 1000l;
	return ticks;
};
#endif




From MAILER-DAEMON Fri Jan 02 10:34:52 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcRK7-0005EB-CF
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 10:34:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcRJn-0005BF-0d
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 10:34:31 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcRJD-00055f-Mw
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 10:34:26 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AcRJD-00055X-61
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 10:33:55 -0500
Received: (qmail 20542 invoked by uid 0); 2 Jan 2004 14:32:25 -0000
Received: from 217.185.83.39 by www39.gmx.net with HTTP;
	Fri, 2 Jan 2004 15:32:25 +0100 (MET)
Date: Fri, 2 Jan 2004 15:32:25 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <8452.1073053945@www39.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: 
Subject: Re: "getTicks() in ms" to add for WIN32 and Linux to commonc++?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 15:34:33 -0000

Hello Wolfgang, 
 
There are Date and Time classes in CommonC++ that may do what you need. If
they 
dont, I am sure David appreciates a patch. 
 
Marc 
 
 
On Friday 02 January 2004 13:49, Wolfgang wrote: 
> Would it make sense to add a getTicks() type function to the CommonC++ 
> framework? Or do you think it is so trivial that it does not need to be 
> there? I run into this recently when porting a project from linux to win32

> using commonc++. 
> Here a draft for for win32 and linux. 
> 
> 
> 
> #ifndef WIN32 
> #include <sys/time.h> 
> #else 
> #include <time.h> 
> #include <windows.h> 
> #endif //win32 
> 
> 
> //return number of ticks in ms 
> long getTicks(); 
> 
> 
> ifdef WIN32 
> long getTicks() { 
> 	return GetTickCount(); 
> }; 
> #else 
> long getTicks() { 
> 	long ticks; 
> 	struct timeval now; 
> 	gettimeofday(&now, NULL); 
> 	ticks = now.tv_sec * 1000l; 
> 	ticks += now.tv_usec / 1000l; 
> 	return ticks; 
> }; 
> #endif 
> 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Fri Jan 02 11:40:22 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcSHQ-0000dp-Oc
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:36:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcSGH-00008N-6n
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:34:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcS9J-0006tT-R2
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:28:17 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AcS1E-0005gR-AH
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:19:24 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i02HIVWT030275; Fri, 2 Jan 2004 12:18:31 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Fri, 2 Jan 2004 10:37:02 -0500
User-Agent: KMail/1.5.3
References: <18427.1073005718@www45.gmx.net>
In-Reply-To: <18427.1073005718@www45.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200401021037.02748.dyfet@ostel.com>
Cc: 
Subject: Re: Rearranging source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 16:36:07 -0000

While it sounds like the right thing to do, this sounds like it should be=20
introduced in an active release after 1.1, perhaps for "1.2".  1.1 still ha=
s=20
fairly limited changes that don't break most peoples existing projects, whi=
le=20
this could...

On Thursday 01 January 2004 08:08 pm, Marc Boris D=FCrner wrote:
> I have started (almost done actually) to separate the networking code from
> the base
> library to form a library called ccNet. Normally one class per .h/.cpp
> pair, except for
> exception classes or the validator classes.
>
> Is there anything else we can modularise?
>
> I wasnt sure what the extension library is, but it seemed pretty generic =
to
> me. I have put
> these classes in the base lib for now.
>
> Any thought on a naming scheme? ccNet seemed like the logical choice
> (ccAudio,
> ccScript... already exist). How shall we call the base lib? libccBase? or
> just libcc?
>
> How about the namespace Gnu::? after all this is an official gnu project,
> isnt it?
>
>
> Marc
>
> On Saturday 27 December 2003 17:06, you wrote:
> > It could make it easier to find things, but some classes were so trivia=
l.
> >
> > Generally, source files are split by hiearchies of related classes and =
by
> >
> > library (ccgnu, ccext), although in many cases a source file do cover a
> > single class and other cases a grouping of closely related classes.
> >
> > "Marc Boris D=FCrner" said:
> > > Hi,
> > > Just wondering if the source files could be split so that there is one
> > > class
> > > per file?
> > >
> > > regards,
> > > Marc




From MAILER-DAEMON Fri Jan 02 11:42:44 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcSL2-0001Fh-9A
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:39:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcSGI-00009b-Va
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:34:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcSBJ-0007Ga-Cf
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:30:20 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AcRzB-0005Wm-TR
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:17:18 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i02HGUWT030250; Fri, 2 Jan 2004 12:16:30 -0500
From: David Sugar <dyfet@ostel.com>
To: wolfgang@alper-online.com, "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Fri, 2 Jan 2004 10:35:01 -0500
User-Agent: KMail/1.5.3
References: <200401021349.37450.wolfgang@alper-online.com>
In-Reply-To: <200401021349.37450.wolfgang@alper-online.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401021035.01791.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: "getTicks() in ms" to add for WIN32 and Linux to commonc++?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 16:39:50 -0000

I recall in reviewing recent changes in ccrtp, that Federico had to add a 
simulated gettimeofday function for supporting w32 builds.  So perhaps both 
of these functions, if needed for different things, should end up with a 
representation in the Common C++ 1.1 reorganized "missing" module for library 
functions missing from some platforms (missing.h/missing.cpp) ...

On Friday 02 January 2004 07:49 am, Wolfgang wrote:
> Would it make sense to add a getTicks() type function to the CommonC++
> framework? Or do you think it is so trivial that it does not need to be
> there? I run into this recently when porting a project from linux to win32
> using commonc++.
> Here a draft for for win32 and linux.
>
>
>
> #ifndef WIN32
> #include <sys/time.h>
> #else
> #include <time.h>
> #include <windows.h>
> #endif //win32
>
>
> //return number of ticks in ms
> long getTicks();
>
>
> ifdef WIN32
> long getTicks() {
> 	return GetTickCount();
> };
> #else
> long getTicks() {
> 	long ticks;
> 	struct timeval now;
> 	gettimeofday(&now, NULL);
> 	ticks = now.tv_sec * 1000l;
> 	ticks += now.tv_usec / 1000l;
> 	return ticks;
> };
> #endif
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Fri Jan 02 11:42:53 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcSNw-0001rT-Iv
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:42:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcSNs-0001oo-Jn
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:42:48 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcSNL-0001fZ-P8
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:42:47 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AcSJU-0000zR-7m
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 11:38:16 -0500
Received: (qmail 27593 invoked by uid 0); 2 Jan 2004 15:36:48 -0000
Received: from 217.185.83.39 by www61.gmx.net with HTTP;
	Fri, 2 Jan 2004 16:36:48 +0100 (MET)
Date: Fri, 2 Jan 2004 16:36:48 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <12997.1073057808@www61.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Re: Rearranging source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 16:42:50 -0000

Hi, 
The split is definatley material for a later version. I found an old
common-c++ sourceforge 
website and there the library was even more modularised. 
 
http://cplusplus.sourceforge.net/ 
 
There is says: 
libcc++ 
libccstd 
libccio 
 
Dont know if this still makes sense. How would you like to do it? 
 
This is what I have right now(each.cpp complemented by a .h file of the same
name): 
 
libccnet_la_SOURCES = BroadcastAddress.cpp \ 
	InetAddress.cpp \ 
	InetHostAddress.cpp \ 
	InetMaskAddress.cpp \ 
	InetMcastAddress.cpp \ 
	NetworkDeviceInfo.cpp \ 
	SimpleTCPStream.cpp \ 
	Socket.cpp \ 
	SocketPort.cpp \ 
	SocketService.cpp \ 
	TCPSession.cpp \ 
	TCPSocket.cpp \ 
	TCPStream.cpp \ 
	UDPBroadcast.cpp \ 
	UDPDuplex.cpp \ 
	UDPReceive.cpp \ 
	UDPSocket.cpp \ 
	UDPTransmit.cpp \ 
	URLStream.cpp \ 
	UnixSession.cpp \ 
	UnixSocket.cpp \ 
	UnixStream.cpp \ 
	UrlString.cpp \ 
	WSA.cpp \ 
	tcpstream.cpp \ 
	unixstream.cpp 
 
All the other classes are in libccbase. But I havent split the source files
yet(This is quite a 
bit of work...). 
 
hope I am useful, 
Marc 
 
 
> While it sounds like the right thing to do, this sounds like it should be 
> introduced in an active release after 1.1, perhaps for "1.2".  1.1 still 
> has fairly limited changes that don't break most peoples existing
projects, 
> while this could... 
> 
> On Thursday 01 January 2004 08:08 pm, Marc Boris Dürner wrote: 
> > I have started (almost done actually) to separate the networking code 
> > from the base 
> > library to form a library called ccNet. Normally one class per .h/.cpp 
> > pair, except for 
> > exception classes or the validator classes. 
> > 
> > Is there anything else we can modularise? 
> > 
> > I wasnt sure what the extension library is, but it seemed pretty generic

> > to me. I have put 
> > these classes in the base lib for now. 
> > 
> > Any thought on a naming scheme? ccNet seemed like the logical choice 
> > (ccAudio, 
> > ccScript... already exist). How shall we call the base lib? libccBase?
or 
> > just libcc? 
> > 
> > How about the namespace Gnu::? after all this is an official gnu
project, 
> > isnt it? 
> > 
> > 
> > Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Fri Jan 02 15:51:38 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcWBK-0003HM-2H
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 15:46:06 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcWBD-0003CF-V8
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 15:45:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcW9e-0002f2-Rz
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 15:44:55 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcW9d-0002YR-Uv
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 15:44:22 -0500
Received: from sonne.kosmos.all (213-182-119-140.teleos-web.de
	[213.182.119.140])
	by sally.dts-online.net (Postfix) with ESMTP id 85DDB48DC30
	for <bug-commoncpp@gnu.org>; Fri,  2 Jan 2004 20:42:50 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id ECFC67B1B3
	for <bug-commoncpp@gnu.org>; Fri,  2 Jan 2004 20:37:17 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Fri, 2 Jan 2004 20:37:15 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401022037.15907.wolfgang@alper-online.com>
Subject: pls help: linking problems with mingw/msys on win32 (linux works ok)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 20:46:04 -0000

Hello,

i really need help on mingw/msys on win32. i encounter linking problems that i 
cannot solve. e.g. i can compile a simple thread app or the tcpdemo, but not 
an app using the socketservices. (see examples below)
note: the same source compiles and links perfect on my linux box.

also, it does not seems to make a difference wether i have the following files 
within the mingw/lib or mingw/dll dir when i compile and link. (it seems that 
i only need the *.dll files to execute the program).

Can anyone explain why my linking process fails and what files i need inside 
mingw?


thx in advance

Wolfgang

mingw/lib:
13103364  libccext2.a
569388   libccext2dll.a
17491450  libccgnu2.a
632530  libccgnu2dll.a
mingw/dll:
390656  ccext2.dll
368128  ccgnu2.dll
569388  libccext2.a
632530  libccgnu2.a


//FAILS
wolfgang@SATURN ~/projects/win32
$ make testsocketservice
mingw32-c++ -I. -I/mingw/include/cc++2 -D_GNU_SOURCE -O2 -mthreads   -L. -L/
mingw/dll -L/mingw/lib  -lccgnu2 -lccext2 -lws2_32  -o ../win32/
testsocketservice.exe ../test/testsocketservice.cpp
D:/TEMP/cc0Yaaaa.o(.text$_ZN12MySocketPort7pendingEv
+0xe1):testsocketservice.cpp: undefined reference to `recv@16'
make: *** [../win32/testsocketservice.exe] Error 1

//OK
wolfgang@SATURN ~/projects/win32
$ make testthread
mingw32-c++ -I. -I/mingw/include/cc++2 -D_GNU_SOURCE -O2 -mthreads   -L. -L/
mingw/dll -L/mingw/lib  -lccgnu2 -lccext2 -lws2_32  -o ../win32/
testthread.exe        ../test/testthread.cpp

//OK
$ make tcpthread
mingw32-c++ -I. -I/mingw/include/cc++2 -D_GNU_SOURCE -O2 -mthreads   -L. -L/
mingw/dll -L/mingw/lib  -lccgnu2 -lccext2 -lws2_32  -o ../win32/
tcpthread.exe ../test/tcpthread.cpp







From MAILER-DAEMON Fri Jan 02 16:06:09 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcWU5-0002qH-BJ
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 16:05:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcWQJ-0000Yx-SU
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 16:01:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcWNZ-0007HW-9e
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 15:59:16 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcWLr-0006fb-UZ
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 15:57:00 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AcVQM-0000VW-00; Fri, 02 Jan 2004 20:57:34 +0100
Date: Fri, 2 Jan 2004 20:57:33 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Message-ID: <20040102195733.GA768@paraguas>
Mail-Followup-To: David Sugar <dyfet@ostel.com>, wolfgang@alper-online.com,
	CommonC++ Mailingliste <bug-commoncpp@gnu.org>,
	Federico Montesino Pouzols <fedemp@altern.org>
References: <200401021349.37450.wolfgang@alper-online.com>
	<200401021035.01791.dyfet@ostel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200401021035.01791.dyfet@ostel.com>
User-Agent: Mutt/1.5.4i
Cc: CommonC++ Mailingliste <bug-commoncpp@gnu.org>,
	Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: "getTicks() in ms" to add for WIN32 and Linux to commonc++?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2004 21:05:27 -0000


	Yes, I think both should end up in missing.h. Also, as Marc
Boris has pointed out, there are some classes in CC++ that use
GetTickCount on Win32, particularly TimerPort (thread.h).

On Fri, Jan 02, 2004 at 10:35:01AM -0500, David Sugar wrote:
> I recall in reviewing recent changes in ccrtp, that Federico had to add a 
> simulated gettimeofday function for supporting w32 builds.  So perhaps both 
> of these functions, if needed for different things, should end up with a 
> representation in the Common C++ 1.1 reorganized "missing" module for library 
> functions missing from some platforms (missing.h/missing.cpp) ...
> 
> On Friday 02 January 2004 07:49 am, Wolfgang wrote:
> > Would it make sense to add a getTicks() type function to the CommonC++
> > framework? Or do you think it is so trivial that it does not need to be
> > there? I run into this recently when porting a project from linux to win32
> > using commonc++.
> > Here a draft for for win32 and linux.
> >
> >
> >
> > #ifndef WIN32
> > #include <sys/time.h>
> > #else
> > #include <time.h>
> > #include <windows.h>
> > #endif //win32
> >
> >
> > //return number of ticks in ms
> > long getTicks();
> >
> >
> > ifdef WIN32
> > long getTicks() {
> > 	return GetTickCount();
> > };
> > #else
> > long getTicks() {
> > 	long ticks;
> > 	struct timeval now;
> > 	gettimeofday(&now, NULL);
> > 	ticks = now.tv_sec * 1000l;
> > 	ticks += now.tv_usec / 1000l;
> > 	return ticks;
> > };
> > #endif
> >
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 



From MAILER-DAEMON Fri Jan 02 21:23:51 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcbRq-00030Y-Pd
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Jan 2004 21:23:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcbRj-0002ql-LH
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 21:23:23 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcbQR-0001je-BT
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 21:22:36 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AcbJz-0007vp-Qq
	for bug-commoncpp@gnu.org; Fri, 02 Jan 2004 21:15:24 -0500
Received: (qmail 18802 invoked by uid 0); 3 Jan 2004 01:13:42 -0000
Received: from 217.185.85.120 by www2.gmx.net with HTTP;
	Sat, 3 Jan 2004 02:13:42 +0100 (MET)
Date: Sat, 3 Jan 2004 02:13:42 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <11710.1073092422@www2.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Boxed types for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Jan 2004 02:23:29 -0000

Hi, 
Thinking about boxed types in CommonC++. Would be useful in many situations.
Look at 
a possible class MemoryChunk. Its a template class that takes a primitive
type (uint8_t 
and higher) as parameter and holds it privately in union with a array of
bytes. This class 
could serve as base class for boxed integers, adresses etc... 
 
Any thoughts? Ideas how to extend this? 
 
 


------------------------------------------------------------------------------- 
 
template <class TYPE> 
class MemoryChunk { 
   public: 
   MemoryChunk() {} 
   ~MemoryChunk() {} 
   const uint8_t& getByte(unsigned int offset) { 
      if(n < getSize()) { 
         return _chunk.bytes[offset]; 
      } 
      else { 
         return 0; //THROW out of range 
      } 
   } 
   private: 
   unsigned int getSize() {return sizeof(TYPE)/sizeof(uint8_t);} 
   union chunk_u { 
      TYPE chunk; 
      uint8_t bytes[getSize()]; 
   } _chunk;   
}; 
 
 
typedef MemoryChunk<uint8_t> Byte; 
typedef MemoryChunk<uint16_t> Word; 
typedef MemoryChunk<uint32_t> DWord; 
typedef MemoryChunk<uint64_t> QWord; 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sat Jan 03 10:48:43 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aco14-0006OV-QI
	for mharc-bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:48:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcnwD-00055Q-6u
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:43:41 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcnuC-00043q-ND
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:42:04 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Acnu9-00041J-Vo
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:41:34 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i03GerWT017214; Sat, 3 Jan 2004 11:40:53 -0500
From: David Sugar <dyfet@ostel.com>
To: Federico Montesino Pouzols <fedemp@altern.org>
Date: Sat, 3 Jan 2004 09:59:24 -0500
User-Agent: KMail/1.5.3
References: <200401021349.37450.wolfgang@alper-online.com>
	<200401021035.01791.dyfet@ostel.com>
	<20040102195733.GA768@paraguas>
In-Reply-To: <20040102195733.GA768@paraguas>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401030959.24536.dyfet@ostel.com>
Cc: CommonC++ Mailingliste <bug-commoncpp@gnu.org>,
	Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: "getTicks() in ms" to add for WIN32 and Linux to commonc++?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Jan 2004 15:48:40 -0000

Done.  We probably should also add a snprintf implementation into missing for 
targets that lack that...

On Friday 02 January 2004 02:57 pm, Federico Montesino Pouzols wrote:
> 	Yes, I think both should end up in missing.h. Also, as Marc
> Boris has pointed out, there are some classes in CC++ that use
> GetTickCount on Win32, particularly TimerPort (thread.h).
>
> On Fri, Jan 02, 2004 at 10:35:01AM -0500, David Sugar wrote:
> > I recall in reviewing recent changes in ccrtp, that Federico had to add a
> > simulated gettimeofday function for supporting w32 builds.  So perhaps
> > both of these functions, if needed for different things, should end up
> > with a representation in the Common C++ 1.1 reorganized "missing" module
> > for library functions missing from some platforms (missing.h/missing.cpp)
> > ...
> >
> > On Friday 02 January 2004 07:49 am, Wolfgang wrote:
> > > Would it make sense to add a getTicks() type function to the CommonC++
> > > framework? Or do you think it is so trivial that it does not need to be
> > > there? I run into this recently when porting a project from linux to
> > > win32 using commonc++.
> > > Here a draft for for win32 and linux.
> > >
> > >
> > >
> > > #ifndef WIN32
> > > #include <sys/time.h>
> > > #else
> > > #include <time.h>
> > > #include <windows.h>
> > > #endif //win32
> > >
> > >
> > > //return number of ticks in ms
> > > long getTicks();
> > >
> > >
> > > ifdef WIN32
> > > long getTicks() {
> > > 	return GetTickCount();
> > > };
> > > #else
> > > long getTicks() {
> > > 	long ticks;
> > > 	struct timeval now;
> > > 	gettimeofday(&now, NULL);
> > > 	ticks = now.tv_sec * 1000l;
> > > 	ticks += now.tv_usec / 1000l;
> > > 	return ticks;
> > > };
> > > #endif
> > >
> > >
> > >
> > > _______________________________________________
> > > Bug-commoncpp mailing list
> > > Bug-commoncpp@gnu.org
> > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sat Jan 03 10:59:06 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aco5H-0007tk-TP
	for mharc-bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:53:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Acnw4-00053F-KA
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:43:32 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcntB-0003Vs-HN
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:41:04 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Acnt9-0003Rk-7T
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:40:31 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i03GdpWT017205; Sat, 3 Jan 2004 11:39:52 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Sat, 3 Jan 2004 09:58:22 -0500
User-Agent: KMail/1.5.3
References: <12997.1073057808@www61.gmx.net>
In-Reply-To: <12997.1073057808@www61.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200401030958.22721.dyfet@ostel.com>
Cc: 
Subject: Re: Rearranging source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Jan 2004 15:52:54 -0000

Originally we had no clear idea of precisely how we wanted to split the=20
library, but we knew we wanted to do so.  This was because of experiances=20
with other C++ class libraries that were very large, and distributed as a=20
single library image, which meant, unless they were widely used over multip=
le=20
applications, it was likely a huge amount of code being installed into shar=
ed=20
memory would never be executed.  This seemed particularly wasteful on=20
smaller/near embedded appliance applications targeted for machines that=20
likely have no swap activated.

The current split was between core classes (libccgnu2 replaced libcc++) and=
=20
libccext2 (which was ccstd & ccio).  The idea being that the more commonly =
or=20
likely to be  used classes would be in ccgnu2, and the less commonly common=
ly=20
used or highly specialized derived ones in ccext2 (kind of like util in=20
java...). =20

It is true that in some of my applications I do not use net classes at all.=
 =20
Hence, the idea of having a separate libccnet2 does make sense to me, and I=
=20
could imagine other people also creating and distributing applications whic=
h=20
do not use or have network operations; again why load code never to be=20
executed?

I did not wish to split the core GNU Common C++ package into "many" separat=
e=20
tiny libraries simply because there are different inefficiencies in doing=20
that.  But I think 3 (or at the very most 4) would be okay, especially if=20
each is fairly large in itself.

On Friday 02 January 2004 10:36 am, Marc Boris D=FCrner wrote:
> Hi,
> The split is definatley material for a later version. I found an old
> common-c++ sourceforge
> website and there the library was even more modularised.
>
> http://cplusplus.sourceforge.net/
>
> There is says:
> libcc++
> libccstd
> libccio
>
> Dont know if this still makes sense. How would you like to do it?
>
> This is what I have right now(each.cpp complemented by a .h file of the
> same name):
>
> libccnet_la_SOURCES =3D BroadcastAddress.cpp \
> 	InetAddress.cpp \
> 	InetHostAddress.cpp \
> 	InetMaskAddress.cpp \
> 	InetMcastAddress.cpp \
> 	NetworkDeviceInfo.cpp \
> 	SimpleTCPStream.cpp \
> 	Socket.cpp \
> 	SocketPort.cpp \
> 	SocketService.cpp \
> 	TCPSession.cpp \
> 	TCPSocket.cpp \
> 	TCPStream.cpp \
> 	UDPBroadcast.cpp \
> 	UDPDuplex.cpp \
> 	UDPReceive.cpp \
> 	UDPSocket.cpp \
> 	UDPTransmit.cpp \
> 	URLStream.cpp \
> 	UnixSession.cpp \
> 	UnixSocket.cpp \
> 	UnixStream.cpp \
> 	UrlString.cpp \
> 	WSA.cpp \
> 	tcpstream.cpp \
> 	unixstream.cpp
>
> All the other classes are in libccbase. But I havent split the source fil=
es
> yet(This is quite a
> bit of work...).
>
> hope I am useful,
> Marc
>
> > While it sounds like the right thing to do, this sounds like it should =
be
> > introduced in an active release after 1.1, perhaps for "1.2".  1.1 still
> > has fairly limited changes that don't break most peoples existing
>
> projects,
>
> > while this could...
> >
> > On Thursday 01 January 2004 08:08 pm, Marc Boris D=FCrner wrote:
> > > I have started (almost done actually) to separate the networking code
> > > from the base
> > > library to form a library called ccNet. Normally one class per .h/.cpp
> > > pair, except for
> > > exception classes or the validator classes.
> > >
> > > Is there anything else we can modularise?
> > >
> > > I wasnt sure what the extension library is, but it seemed pretty
> > > generic
> > >
> > > to me. I have put
> > > these classes in the base lib for now.
> > >
> > > Any thought on a naming scheme? ccNet seemed like the logical choice
> > > (ccAudio,
> > > ccScript... already exist). How shall we call the base lib? libccBase?
>
> or
>
> > > just libcc?
> > >
> > > How about the namespace Gnu::? after all this is an official gnu
>
> project,
>
> > > isnt it?
> > >
> > >
> > > Marc




From MAILER-DAEMON Sat Jan 03 11:10:23 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AcoM3-0002a1-5A
	for mharc-bug-commoncpp@gnu.org; Sat, 03 Jan 2004 11:10:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AcoM0-0002ZT-NG
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 11:10:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AcoGu-0001lo-8t
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 11:05:35 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Aco4b-0007GB-9u
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 10:52:21 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1Acn3i-0002HS-2V
	for bug-commoncpp@gnu.org; Sat, 03 Jan 2004 09:47:22 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i03Gm7WT017230; Sat, 3 Jan 2004 11:48:07 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Sat, 3 Jan 2004 10:06:38 -0500
User-Agent: KMail/1.5.3
References: <18427.1073005718@www45.gmx.net>
In-Reply-To: <18427.1073005718@www45.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200401031006.38275.dyfet@ostel.com>
Cc: 
Subject: Re: Rearranging source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Jan 2004 16:10:21 -0000

On Thursday 01 January 2004 08:08 pm, Marc Boris D=FCrner wrote:

> Any thought on a naming scheme? ccNet seemed like the logical choice
> (ccAudio,
> ccScript... already exist). How shall we call the base lib? libccBase? or
> just libcc?

What's wrong with keeping libccgnu(2) for this purpose?

> How about the namespace Gnu::? after all this is an official gnu project,
> isnt it?

Perhaps we should change the namespace at some point.  Of course, there is =
no=20
coordination among gnu C++ related package maintainers for the use of a gnu=
::=20
namespace at present, so my first concern is how easy it might be for each =
of=20
us to stomp over the other, and we definately needed a separate namespace. =
=20
ost:: did well for that purpose the same way sun. does for Java classlibs,=
=20
especially from before it was a gnu package.  If we were to choose any othe=
r=20
namespace later, I think the right choice would likely be to use gnu::...

> Marc
>
> On Saturday 27 December 2003 17:06, you wrote:
> > It could make it easier to find things, but some classes were so trivia=
l.
> >
> > Generally, source files are split by hiearchies of related classes and =
by
> >
> > library (ccgnu, ccext), although in many cases a source file do cover a
> > single class and other cases a grouping of closely related classes.
> >
> > "Marc Boris D=FCrner" said:
> > > Hi,
> > > Just wondering if the source files could be split so that there is one
> > > class
> > > per file?
> > >
> > > regards,
> > > Marc




From MAILER-DAEMON Sun Jan 04 07:03:22 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Ad6yY-0007gc-8T
	for mharc-bug-commoncpp@gnu.org; Sun, 04 Jan 2004 07:03:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Ad6yU-0007fW-Hq
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 07:03:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Ad6xw-0007We-7y
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 07:03:15 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ad6rz-0006RD-9e
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 06:56:35 -0500
Received: from sonne.kosmos.all (213-182-117-212.teleos-web.de
	[213.182.117.212])
	by sally.dts-online.net (Postfix) with ESMTP id 70FCC4BD88D
	for <bug-commoncpp@gnu.org>; Sun,  4 Jan 2004 11:55:04 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 234A37B35E
	for <bug-commoncpp@gnu.org>; Sun,  4 Jan 2004 11:49:24 +0100 (CET)
From: Wolfgang Alper <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Sun, 4 Jan 2004 11:49:18 +0100
User-Agent: KMail/1.5.4
References: <200401021349.37450.wolfgang@alper-online.com>
	<20040102195733.GA768@paraguas>
	<200401030959.24536.dyfet@ostel.com>
In-Reply-To: <200401030959.24536.dyfet@ostel.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401041149.18669.wolfgang@alper-online.com>
Subject: Re: "getTicks() in ms" to add for WIN32 and Linux to commonc++?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Jan 2004 12:03:20 -0000

Thanks for adding ;-).
And yes , i would like to see snprintf being emulated for targets not 
providing this function since it is being widly used.

Best regards

Wolfgang

Am Samstag, 3. Januar 2004 15:59 schrieb David Sugar:
> Done.  We probably should also add a snprintf implementation into missing
> for targets that lack that...
>
> On Friday 02 January 2004 02:57 pm, Federico Montesino Pouzols wrote:
> > 	Yes, I think both should end up in missing.h. Also, as Marc
> > Boris has pointed out, there are some classes in CC++ that use
> > GetTickCount on Win32, particularly TimerPort (thread.h).
> >
> > On Fri, Jan 02, 2004 at 10:35:01AM -0500, David Sugar wrote:
> > > I recall in reviewing recent changes in ccrtp, that Federico had to add
> > > a simulated gettimeofday function for supporting w32 builds.  So
> > > perhaps both of these functions, if needed for different things, should
> > > end up with a representation in the Common C++ 1.1 reorganized
> > > "missing" module for library functions missing from some platforms
> > > (missing.h/missing.cpp) ...
> > >
> > > On Friday 02 January 2004 07:49 am, Wolfgang wrote:
> > > > Would it make sense to add a getTicks() type function to the
> > > > CommonC++ framework? Or do you think it is so trivial that it does
> > > > not need to be there? I run into this recently when porting a project
> > > > from linux to win32 using commonc++.
> > > > Here a draft for for win32 and linux.
> > > >
> > > >
> > > >
> > > > #ifndef WIN32
> > > > #include <sys/time.h>
> > > > #else
> > > > #include <time.h>
> > > > #include <windows.h>
> > > > #endif //win32
> > > >
> > > >
> > > > //return number of ticks in ms
> > > > long getTicks();
> > > >
> > > >
> > > > ifdef WIN32
> > > > long getTicks() {
> > > > 	return GetTickCount();
> > > > };
> > > > #else
> > > > long getTicks() {
> > > > 	long ticks;
> > > > 	struct timeval now;
> > > > 	gettimeofday(&now, NULL);
> > > > 	ticks = now.tv_sec * 1000l;
> > > > 	ticks += now.tv_usec / 1000l;
> > > > 	return ticks;
> > > > };
> > > > #endif
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Bug-commoncpp mailing list
> > > > Bug-commoncpp@gnu.org
> > > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sun Jan 04 10:29:40 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AdABp-0005PN-RT
	for mharc-bug-commoncpp@gnu.org; Sun, 04 Jan 2004 10:29:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdABN-0004mg-9D
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 10:28:49 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AdA7l-0001kh-W2
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 10:25:37 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AdA7N-0001DN-Vk
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 10:24:42 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1Ad917-0003UN-Gf
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 09:14:09 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i04GF7WT011066; Sun, 4 Jan 2004 11:15:07 -0500
From: David Sugar <dyfet@ostel.com>
To: wolfgang@alper-online.com, bug-commoncpp@gnu.org
Date: Sun, 4 Jan 2004 09:33:38 -0500
User-Agent: KMail/1.5.3
References: <200401021349.37450.wolfgang@alper-online.com>
	<200401030959.24536.dyfet@ostel.com>
	<200401041149.18669.wolfgang@alper-online.com>
In-Reply-To: <200401041149.18669.wolfgang@alper-online.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401040933.38653.dyfet@ostel.com>
Cc: 
Subject: Re: "getTicks() in ms" to add for WIN32 and Linux to commonc++?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Jan 2004 15:29:13 -0000

I have seen portable implementations used in other packages where the target 
doesn't have snprintf,  like in rsync, etc, some on bsd licenses, some on 
lgpl, so I assume we can find an existing one to port and use as a 
replacement function in Common C++ from somewhere.  And of course, it's damn 
useful for quick string hacks that are then at least stack/boundry safe.  
However, there are also very few modern platforms that do not have snprintf 
in their libc (even w32 has a "_snprintf" buried away).    

I also recall at one point there being added a w32 c library of explicitly 
"safe" string functions.  I looked at the headers for that, and it looked 
both overly complex and overkill for the scope of the given problem, 
especially given snprintf and it's relatives can be made into doing similar 
work, but we did recently add a few original string functions of our own to 
do safe string concatenation and other basic things (setString,  addString).  
However, I think the focus of "safe" string coding for C++ applications is 
surely in the use of a proper string class rather than in making libc derived 
string functions safer.

On Sunday 04 January 2004 05:49 am, Wolfgang Alper wrote:
> Thanks for adding ;-).
> And yes , i would like to see snprintf being emulated for targets not
> providing this function since it is being widly used.
>
> Best regards
>
> Wolfgang
>
> Am Samstag, 3. Januar 2004 15:59 schrieb David Sugar:
> > Done.  We probably should also add a snprintf implementation into missing
> > for targets that lack that...
> >
> > On Friday 02 January 2004 02:57 pm, Federico Montesino Pouzols wrote:
> > > 	Yes, I think both should end up in missing.h. Also, as Marc
> > > Boris has pointed out, there are some classes in CC++ that use
> > > GetTickCount on Win32, particularly TimerPort (thread.h).
> > >
> > > On Fri, Jan 02, 2004 at 10:35:01AM -0500, David Sugar wrote:
> > > > I recall in reviewing recent changes in ccrtp, that Federico had to
> > > > add a simulated gettimeofday function for supporting w32 builds.  So
> > > > perhaps both of these functions, if needed for different things,
> > > > should end up with a representation in the Common C++ 1.1 reorganized
> > > > "missing" module for library functions missing from some platforms
> > > > (missing.h/missing.cpp) ...
> > > >
> > > > On Friday 02 January 2004 07:49 am, Wolfgang wrote:
> > > > > Would it make sense to add a getTicks() type function to the
> > > > > CommonC++ framework? Or do you think it is so trivial that it does
> > > > > not need to be there? I run into this recently when porting a
> > > > > project from linux to win32 using commonc++.
> > > > > Here a draft for for win32 and linux.
> > > > >
> > > > >
> > > > >
> > > > > #ifndef WIN32
> > > > > #include <sys/time.h>
> > > > > #else
> > > > > #include <time.h>
> > > > > #include <windows.h>
> > > > > #endif //win32
> > > > >
> > > > >
> > > > > //return number of ticks in ms
> > > > > long getTicks();
> > > > >
> > > > >
> > > > > ifdef WIN32
> > > > > long getTicks() {
> > > > > 	return GetTickCount();
> > > > > };
> > > > > #else
> > > > > long getTicks() {
> > > > > 	long ticks;
> > > > > 	struct timeval now;
> > > > > 	gettimeofday(&now, NULL);
> > > > > 	ticks = now.tv_sec * 1000l;
> > > > > 	ticks += now.tv_usec / 1000l;
> > > > > 	return ticks;
> > > > > };
> > > > > #endif
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Bug-commoncpp mailing list
> > > > > Bug-commoncpp@gnu.org
> > > > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> > >
> > > _______________________________________________
> > > Bug-commoncpp mailing list
> > > Bug-commoncpp@gnu.org
> > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sun Jan 04 16:25:04 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AdFk8-0007TJ-5f
	for mharc-bug-commoncpp@gnu.org; Sun, 04 Jan 2004 16:25:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdFk3-0007OL-2U
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 16:24:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AdFjP-00073O-4g
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 16:24:50 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdFjO-000739-JZ
	for bug-commoncpp@gnu.org; Sun, 04 Jan 2004 16:24:18 -0500
Received: from sonne.kosmos.all (213-182-119-18.teleos-web.de [213.182.119.18])
	by sally.dts-online.net (Postfix) with ESMTP id 542F1413D27
	for <bug-commoncpp@gnu.org>; Sun,  4 Jan 2004 21:22:50 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id D235B7B703
	for <bug-commoncpp@gnu.org>; Sun,  4 Jan 2004 21:17:09 +0100 (CET)
From: Wolfgang Alper <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Sun, 4 Jan 2004 21:17:08 +0100
User-Agent: KMail/1.5.4
References: <200401011711.23978.wolfgang@alper-online.com>
In-Reply-To: <200401011711.23978.wolfgang@alper-online.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401042117.08125.wolfgang@alper-online.com>
Subject: Re: linking probs with ccext2 and cmdlineopt using w32 msys/mingw
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Jan 2004 21:25:01 -0000

Well after a while i found the problem.
it is really trival if one knows about it.

the point is the order of commands in the make file (refering to the process 
of linking)

Example1: given that  c++ = mingw32-c++
(does NOT work on win32(mingw/msys) and cause the linkage problem, but works 
on linux)
c++  -L/mingw/lib -lccgnu2 -lccext2 -lws2_32  cmdlineopt.o  -o cmdlineopt.exe 

Example2: given that c++ = g++
(this DOES work on both win32 and linux)
c++  cmdlineopt.o  -L/mingw/lib -lccgnu2 -lccext2 -lws2_32  -o cmdlineopt.exe 

hope that helps those haveing probs when porting from linux to mingw/win32

Regards

Wolfgang

p.s. it someone is interested , i would put together a simple summary of what 
i changed for:

-getting commonc++ compiled on win32(using mingw/msys)
-changing mingw (libs /include) on win32  to get other apps compiled outside 
the commonc++ src dir.
-creating a makefile for a 3th party up to work with mingw/msys and commonc.

it might be that i did things that i should not have done. but as i stated 
before, these were my first steps on win32 mingw/msys and now i can compile 
the same source from the same dir for both linux and w32 :-)




Am Donnerstag, 1. Januar 2004 17:11 schrieb Wolfgang:
> Hello,
> first of all a happy new year!!!
>
> i have some problems when using the cmdline class within w32, but only
> during linking. the other stuff links fine.
> i have to admit that i am no expert with msys and mingw.
> however, the rest of the demo apps compile and link without any problem.
>
> also i have to place my self compiled commonc++ dll's within the ./mytest
> dir, otherwise it does not link at all. however, the dll's should be at the
> right place.
>
>
> p.s. i do not refer to the "deprecated or antiquated..." warnung but to
> "Info: resolving __ZN3ost24defaultCommandOptionListE by linking to
> __imp___ZN3ost24defaultCommandOptionListE (auto-import)"
>
>
> //this looks not ok
>
> wolfgang@SATURN ~/mytest
> $ make cmdlineopt
> mingw32-c++ -g -O2 -mthreads -I. -I/mingw/include/cc++2 -DHAVE_CONFIG_H
> -D_GNU_SOURCE -L. -L/mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32
> cmdlineopt.cpp   -o cmdlineopt
> In file included from D:/APPS/DEVEL/MinGW/include/c++/3.2.3/backward/
> strstream:51,
>                  from cmdlineopt.cpp:164:
> D:/APPS/DEVEL/MinGW/include/c++/3.2.3/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one deprecated or antiquated
> header. Please consider using one of the 32 headers found in section
> 17.4.1.2 of the C++ standard. Examples include substituting the <X> header
> for the <X.h> header for C++ includes, or <sstream> instead of the
> deprecated header <strstream.h>. To disable this warning use
> -Wno-deprecated.
> Info: resolving __ZN3ost24defaultCommandOptionListE by linking to
> __imp___ZN3ost24defaultCommandOptionListE (auto-import)
> wolfgang@SATURN ~/mytest$
>
>
> //this looks ok
>
> wolfgang@SATURN ~/mytest
> $ make tcp
> mingw32-c++ -g -O2 -mthreads -I. -I/mingw/include/cc++2 -DHAVE_CONFIG_H
> -D_GNU_SOURCE -L. -L/mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32
> tcp.cpp   -o tcp
>
>
> //this looks ok
>
> wolfgang@SATURN ~/mytest
> $ make crc32
> mingw32-c++ -g -O2 -mthreads -I. -I/mingw/include/cc++2 -DHAVE_CONFIG_H
> -D_GNU_SOURCE -L. -L/mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32
> crc32.cpp   -o crc32
>
>
>
>
>
>
>
> creation of dll's:
> =====================
> $ make -f Makefile.tst
> dllwrap --export-all-symbols --output-def ccgnu2.def --implib libccgnu2.a
> --driver-name mingw32-c++ -o ccgnu2.dll \
> thread.o mutex.o semaphore.o threadkey.o friends.o event.o slog.o dir.o
> file.o inaddr.o peer.o port.o socket.o network.o serial.o mempager.o
> keydata.o dso.o exception.o process.o urlstring.o libgnu2.o -L/mingw/dll
> -lws2_32
> D:\APPS\DEVEL\MinGW\bin\dllwrap.exe: no export definition file provided.
> Creating one, but that may not be what you want
> dllwrap --export-all-symbols --output-def ccext2.def --implib libccext2.a
> --driver-name mingw32-c++ -o ccext2.dll \
> buffer.o fifo.o pipe.o numbers.o cmdoptns.o url.o persist.o engine.o
> digest.o sha.o date.o groups.o md5.o unix.o ftp.o libgnu2.o -L.
> -L/mingw/dll -lccgnu2 -liberty -lws2_32
> D:\APPS\DEVEL\MinGW\bin\dllwrap.exe: no export definition file provided.
> Creating one, but that may not be what you want
>
>
> make install
> ============
> wolfgang@SATURN ~/commoncpp2-1.0.13/win32
> $ make -f Makefile.tst install
> mkdir -p /mingw/include/cc++2/cc++
> mkdir -p /mingw/dll
> cp -af cc++/config.h ../include/cc++/thread.h ../include/cc++/socket.h ../
> include/cc++/exception.h ../include/cc++/cmdoptns.h ../include/cc++/
> digest.h ../include/cc++/export.h ../include/cc++/file.h ../include/cc++/
> groups.h ../include/cc++/misc.h ../include/cc++/numbers.h ../include/cc++/
> persist.h ../include/cc++/slog.h ../include/cc++/url.h ../include/cc++/
> urlstring.h ../include/cc++/xml.h ../include/cc++/serial.h ../include/cc++/
> strchar.h ../include/cc++/network.h /mingw/include/cc++2/cc++
> cp -af libccgnu2.a ccgnu2.dll libccext2.a ccext2.dll /mingw/dll
> cp -af libccgnu2.a /mingw/lib/libccgnu2dll.a
> cp -af libccext2.a /mingw/lib/libccext2dll.a
> strip /mingw/dll/ccgnu2.dll /mingw/dll/ccext2.dll
> ar -rs /mingw/lib/libccgnu2.a thread.o mutex.o semaphore.o threadkey.o
> friends.o event.o slog.o dir.o file.o inaddr.o peer.o port.o socket.o
> network.o serial.o mempager.o keydata.o dso.o exception.o process.o
> urlstring.o
> ar -rs /mingw/lib/libccext2.a buffer.o fifo.o pipe.o numbers.o cmdoptns.o
> url.o persist.o engine.o digest.o sha.o date.o groups.o md5.o unix.o ftp.o
>
> wolfgang@SATURN ~/commoncpp2-1.0.13/win32
> $
>
>
>
> and the files:
> =============
> wolfgang@SATURN ~/commoncpp2-1.0.13/win32
> $ ls /mingw/lib/libcc* -la
> -rw-r--r--    1 wolfgang Administ 13103364 Jan  1 15:57
> /mingw/lib/libccext2.a -rw-r--r--    1 wolfgang Administ   569388 Jan  1
> 15:53 /mingw/lib/ libccext2dll.a
> -rw-r--r--    1 wolfgang Administ 17491450 Jan  1 15:57
> /mingw/lib/libccgnu2.a -rw-r--r--    1 wolfgang Administ   632530 Jan  1
> 15:53 /mingw/lib/ libccgnu2dll.a
>
>
> wolfgang@SATURN ~/commoncpp2-1.0.13/win32
> $ ls /mingw/dll -la
> -rwxr-xr-x    1 wolfgang Administ   390656 Jan  1 15:57 ccext2.dll
> -rwxr-xr-x    1 wolfgang Administ   368128 Jan  1 15:57 ccgnu2.dll
> -rw-r--r--    1 wolfgang Administ   569388 Jan  1 15:53 libccext2.a
> -rw-r--r--    1 wolfgang Administ   632530 Jan  1 15:53 libccgnu2.a
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Mon Jan 05 14:59:15 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Adasc-0002rh-KP
	for mharc-bug-commoncpp@gnu.org; Mon, 05 Jan 2004 14:59:14 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdasZ-0002p9-SX
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 14:59:11 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Adas3-0002Pe-Ic
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 14:59:10 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Adaln-0007yD-GC
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 14:52:11 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AdZna-0000HW-Mt
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 13:49:58 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AdZqE-0000bx-00; Mon, 05 Jan 2004 19:52:42 +0100
Date: Mon, 5 Jan 2004 19:52:42 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Wolfgang Alper <wolfgang@alper-online.com>
Message-ID: <20040105185242.GA2073@paraguas>
Mail-Followup-To: Wolfgang Alper <wolfgang@alper-online.com>,
	bug-commoncpp@gnu.org
References: <200401011711.23978.wolfgang@alper-online.com>
	<200401042117.08125.wolfgang@alper-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200401042117.08125.wolfgang@alper-online.com>
User-Agent: Mutt/1.5.4i
Cc: bug-commoncpp@gnu.org
Subject: Re: linking probs with ccext2 and cmdlineopt using w32 msys/mingw
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jan 2004 19:59:13 -0000


	I think your summary would be very interesting. The mingw
makefile currently included with CC++ was developed and tested on
GNU/Linux with gcc/mingw as cross-compiler.

	There is a INSTALL.win32 to which we should add the quick
instructions/tricks, and if there is the need to include more detailed
explanations, these could be added to the documentation.

On Sun, Jan 04, 2004 at 09:17:08PM +0100, Wolfgang Alper wrote:
> 
> p.s. it someone is interested , i would put together a simple summary of what 
> i changed for:
> 
> -getting commonc++ compiled on win32(using mingw/msys)
> -changing mingw (libs /include) on win32  to get other apps compiled outside 
> the commonc++ src dir.
> -creating a makefile for a 3th party up to work with mingw/msys and commonc.
> 
> it might be that i did things that i should not have done. but as i stated 
> before, these were my first steps on win32 mingw/msys and now i can compile 
> the same source from the same dir for both linux and w32 :-)



From MAILER-DAEMON Mon Jan 05 15:04:45 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Adaxa-00078h-FO
	for mharc-bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:04:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Adax6-0006lT-F0
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:03:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Adaw5-0005ln-Av
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:03:22 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Adauq-0002pc-VX
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:01:33 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AdZwj-0000mL-Et
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 13:59:25 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AdZzb-0000hA-00; Mon, 05 Jan 2004 20:02:23 +0100
Date: Mon, 5 Jan 2004 20:02:23 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>
Message-ID: <20040105190223.GB2073@paraguas>
Mail-Followup-To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
References: <22103.1072664419@www19.gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <22103.1072664419@www19.gmx.net>
User-Agent: Mutt/1.5.4i
Cc: bug-commoncpp@gnu.org
Subject: Re: NetAddress class
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jan 2004 20:04:17 -0000


	It sounds interesting. I suppose this relates the boxed types
and MemoryChunk template you comment on another post?

On Mon, Dec 29, 2003 at 03:20:19AM +0100, "Marc Boris Dürner" wrote:
> Hi, 
> For the implementation of classes for numeric IP addresses I am trying to
> treat an IP 
> address as a series of bytes. I have a base class NetAddress that has a
> vector<uint8_t> 
> as a member and is so usable for inet4, inet6, ipx etc... (and maybe mac
> address as well) 
> The derived class Inet4Address for instance has a validator that can
> validate a string as 
> input and put 4 bytes into the vector. It provides compatibility
> getter/setter to in_addr. 
>  
> Is this a good idea? 
>  
> regards, 
> Marc 
>  
> 
> -- 
> +++ GMX - die erste Adresse für Mail, Message, More +++
> Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Mon Jan 05 15:46:43 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AdbcZ-0002Cl-GO
	for mharc-bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:46:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdbcW-0002CK-Js
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:46:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Adbc0-00028o-Kl
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:46:39 -0500
Received: from [129.101.155.252] (helo=mailA.its.uidaho.edu)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1Adbbz-00028Y-5l
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 15:46:07 -0500
Received: from uidaho.edu (falcon.advancement.uidaho.edu [129.101.69.98])
	by mailA.its.uidaho.edu (Go Vandals!)
	with ESMTPA id <0HR100DQM86E3C@mailA.its.uidaho.edu> for
	bug-commoncpp@gnu.org; Mon, 05 Jan 2004 11:44:38 -0800 (PST)
Date: Mon, 05 Jan 2004 11:44:37 -0800
From: Chad Yates <cyates@uidaho.edu>
In-reply-to: <200401031006.38275.dyfet@ostel.com>
To: David Sugar <dyfet@ostel.com>
Message-id: <3FF9BEA5.7080607@uidaho.edu>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: QUOTED-PRINTABLE
X-Accept-Language: en-us, en
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b)
	Gecko/20031205 Thunderbird/0.4
References: <18427.1073005718@www45.gmx.net>
	<200401031006.38275.dyfet@ostel.com>
Cc: bug-commoncpp@gnu.org
Subject: Re: Rearranging source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jan 2004 20:46:41 -0000

At one point the idea was brought up to use ccxx for a namespace.  us=
e=20
of gnu seems to me to be to "generic".  just a thought. seach the=
=20
archive for "Some issues with the codebase" for some history.

David Sugar wrote:

>>How about the namespace Gnu::? after all this is an official gnu pr=
oject,
>>isnt it?
>>   =20
>>
>
>Perhaps we should change the namespace at some point.  Of course, th=
ere is no=20
>coordination among gnu C++ related package maintainers for the use o=
f a gnu::=20
>namespace at present, so my first concern is how easy it might be fo=
r each of=20
>us to stomp over the other, and we definately needed a separate name=
space. =20
>ost:: did well for that purpose the same way sun. does for Java clas=
slibs,=20
>especially from before it was a gnu package.  If we were to choose a=
ny other=20
>namespace later, I think the right choice would likely be to use gnu=
::...
>
> =20
>
>>Marc
>>
>>On Saturday 27 December 2003 17:06, you wrote:
>>   =20
>>
>>>It could make it easier to find things, but some classes were so t=
rivial.
>>>
>>>Generally, source files are split by hiearchies of related classes=
 and by
>>>
>>>library (ccgnu, ccext), although in many cases a source file do co=
ver a
>>>single class and other cases a grouping of closely related classes=
.
>>>
>>>"Marc Boris D=FCrner" said:
>>>     =20
>>>
>>>>Hi,
>>>>Just wondering if the source files could be split so that there i=
s one
>>>>class
>>>>per file?
>>>>
>>>>regards,
>>>>Marc
>>>>       =20
>>>>
On the side I began a project to split the source out by class as you=
=20
are doing.  I think it makes a lot of sense, and was doing so because=
 it=20
was difficult to keep track of what files contained what classes.  I=
=20
can't remember how far along I was in it, and it's in a archive of on=
e=20
of my local cvs installations that I haven't set back up yet.  I thin=
k=20
its a good idea for the long term anyway.

,chad





From MAILER-DAEMON Mon Jan 05 20:18:47 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Adfrr-0002Mw-8y
	for mharc-bug-commoncpp@gnu.org; Mon, 05 Jan 2004 20:18:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Adfp1-0000U7-8I
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 20:15:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AdfoT-0000FM-BQ
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 20:15:48 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AdfoS-0000Du-I1
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 20:15:16 -0500
Received: (qmail 27721 invoked by uid 0); 6 Jan 2004 00:13:42 -0000
Received: from 217.185.100.236 by www17.gmx.net with HTTP;
	Tue, 6 Jan 2004 01:13:42 +0100 (MET)
Date: Tue, 6 Jan 2004 01:13:42 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <4649.1073348022@www17.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Re: Rearranging source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2004 01:15:53 -0000

Hi, 
 
>It is true that in some of my applications I do not use net classes at all.
  
>Hence, the idea of having a separate libccnet2 does make sense to me, and I
 
>could imagine other people also creating and distributing applications
which  
>do not use or have network operations; again why load code never to be  
>executed? 
 
the networking part was a significant chunk, so it wouldnt be too fragmnted
in te end. 
 
>I did not wish to split the core GNU Common C++ package into "many"
separate  
>tiny libraries simply because there are different inefficiencies in doing  
>that.  But I think 3 (or at the very most 4) would be okay, especially if  
>each is fairly large in itself. 
 
I will try to take out the Threads next. The digest and derivatives seem to
be a good 
candidate too. 
 
Marc 
 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Mon Jan 05 22:27:23 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AdhsJ-0005wt-3O
	for mharc-bug-commoncpp@gnu.org; Mon, 05 Jan 2004 22:27:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdhpV-0004xh-S8
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 22:24:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Adhox-0004oV-Q5
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 22:24:27 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1Adhow-0004nV-VP
	for bug-commoncpp@gnu.org; Mon, 05 Jan 2004 22:23:55 -0500
Received: (qmail 13260 invoked by uid 0); 6 Jan 2004 02:15:43 -0000
Received: from 217.185.100.236 by www42.gmx.net with HTTP;
	Tue, 6 Jan 2004 03:15:43 +0100 (MET)
Date: Tue, 6 Jan 2004 03:15:43 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <1126.1073355343@www42.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: fedemp@altern.org
Subject: Boxed types for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2004 03:24:30 -0000

>        It sounds interesting. I suppose this relates the boxed types 
>and MemoryChunk template you comment on another post? 
 
Yes, but not neccessarily. For the boxed types we also would need to
implement float, 
char etc... 
It just seemed a good analogy to low level C-programming where you use
uint8_t for a 
byte and the larger int types for short series of bytes. The union is a fast
way of extracting 
bytes. 
 
   union chunk_u {  
      TYPE chunk;  
      uint8_t bytes[sizeof(TYPE)/sizeof(uint8_t)];  
   } _chunk; 
 
The union doesnt make much sense though if TYPE is a float. So would it work
to have a 
template class BoxedType that boxes everything and then use derivatives of
BoxedType 
for MemoryChunk? So BoxedType would be identical to MemoryChunk, just
without the 
union. 
 
BoxedType <- UInt8 
                  <- UInt16 
                  <- UInt32 
                  <- UInt64 
 
typedef MemoryChunk<UInt8> Byte; 
typedef MemoryChunk<UInt16> Word; 
etc... 
 
Marc 
 
On Mon, Dec 29, 2003 at 03:20:19AM +0100, "Marc Boris Dürner" wrote: 
> Hi,  
> For the implementation of classes for numeric IP addresses I am trying to 
> treat an IP  
> address as a series of bytes. I have a base class NetAddress that has a 
> vector<uint8_t>  
> as a member and is so usable for inet4, inet6, ipx etc... (and maybe mac 
> address as well)  
> The derived class Inet4Address for instance has a validator that can 
> validate a string as  
> input and put 4 bytes into the vector. It provides compatibility 
> getter/setter to in_addr.  
>   
> Is this a good idea?  
>   
> regards,  
> Marc  

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Tue Jan 06 09:49:57 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AdsWD-0005ap-4R
	for mharc-bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:49:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdsVF-00058c-7L
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:48:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AdsTh-0003RI-93
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:47:14 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdsSJ-000229-MW
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:45:15 -0500
Received: from sonne.kosmos.all (212-62-80-225.teleos-web.de [212.62.80.225])
	by sally.dts-online.net (Postfix) with ESMTP id 62529358310
	for <bug-commoncpp@gnu.org>; Tue,  6 Jan 2004 14:43:44 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 190487B703
	for <bug-commoncpp@gnu.org>; Tue,  6 Jan 2004 14:37:57 +0100 (CET)
From: Wolfgang Alper <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Tue, 6 Jan 2004 14:37:54 +0100
User-Agent: KMail/1.5.4
References: <200401011711.23978.wolfgang@alper-online.com>
	<200401042117.08125.wolfgang@alper-online.com>
	<20040105185242.GA2073@paraguas>
In-Reply-To: <20040105185242.GA2073@paraguas>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401061437.54278.wolfgang@alper-online.com>
Subject: Re: linking probs with ccext2 and cmdlineopt using w32 msys/mingw
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2004 14:49:15 -0000

Ok, i'll put a summary together the next days.
Is it ok to attach small *.txt files to messages on this mailinglist?

Regards

Wolfgang

Am Montag, 5. Januar 2004 19:52 schrieb Federico Montesino Pouzols:
> 	I think your summary would be very interesting. The mingw
> makefile currently included with CC++ was developed and tested on
> GNU/Linux with gcc/mingw as cross-compiler.
>
> 	There is a INSTALL.win32 to which we should add the quick
> instructions/tricks, and if there is the need to include more detailed
> explanations, these could be added to the documentation.
>
> On Sun, Jan 04, 2004 at 09:17:08PM +0100, Wolfgang Alper wrote:
> > p.s. it someone is interested , i would put together a simple summary of
> > what i changed for:
> >
> > -getting commonc++ compiled on win32(using mingw/msys)
> > -changing mingw (libs /include) on win32  to get other apps compiled
> > outside the commonc++ src dir.
> > -creating a makefile for a 3th party up to work with mingw/msys and
> > commonc.
> >
> > it might be that i did things that i should not have done. but as i
> > stated before, these were my first steps on win32 mingw/msys and now i
> > can compile the same source from the same dir for both linux and w32 :-)




From MAILER-DAEMON Tue Jan 06 09:51:30 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AdsYL-0006Ae-RD
	for mharc-bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:51:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdsW5-0005Yn-GE
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:49:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AdsV3-0004sI-P7
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:48:14 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdsV1-0004p1-5J
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 09:48:03 -0500
Received: from sonne.kosmos.all (212-62-80-225.teleos-web.de [212.62.80.225])
	by sally.dts-online.net (Postfix) with ESMTP id 4171A48B22B
	for <bug-commoncpp@gnu.org>; Tue,  6 Jan 2004 14:46:28 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 2B4047B703
	for <bug-commoncpp@gnu.org>; Tue,  6 Jan 2004 14:40:41 +0100 (CET)
From: Wolfgang Alper <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Tue, 6 Jan 2004 14:40:39 +0100
User-Agent: KMail/1.5.4
References: <200312270557.55222.wolfgang@alper-online.com>
	<20031227213805.GB759@paraguas>
	<200312272249.12768.wolfgang@alper-online.com>
In-Reply-To: <200312272249.12768.wolfgang@alper-online.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401061440.39402.wolfgang@alper-online.com>
Subject: Re: getPeer(tpport_t *port) and SocketPort for bound UDPSockets
	broken?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2004 14:51:27 -0000

I just wonder wether someone was able to confirm this issue with getPeer on 
UDP Socketports and/or wether anyone has an idea for a fix / workaround.


Regards

Wolfgang

Am Samstag, 27. Dezember 2003 22:49 schrieb Wolfgang:
> Hello Federico,
>
> well i called getPeer() within pending() . for my test, i did it every time
> in pending before calling receive().
> i know that datagram works connectionless in comparison to TCP based
> streamsockets.
>
> //using SocketPort:
> //doesn't return correct peer information for udpsocket
> //but works for tcpsockets
> 	void pending(void) {
> 		tpport_t mport; InetHostAddress ia = getPeer(&mport);
> 		cout << "Remote Client: " << ia << ":" << mport << endl;
> 		char buffer[1000]; int dlen; dlen = receive(buffer, 1000); buffer[dlen] =
> '\0';
> 		if (dlen > 0) {
> 			cout << "MySocketPort::pending. so: " << so << " received: " << dlen <<
> "bytes. = " << buffer << endl;
> 		}
> 		else {
> 			cout << "MySocketPort::pending. so: " << so << " dlen <= 0!: " << dlen
> << endl;
> 			//this is not the best way but for a simple test...
> 			delete this;
> 		}
> 	};
>
>
>
> then i did a test with a UDPSocket and called getPeer() after a packet
> arrived but before receive().
>
> //explicit server, explicit getPeer() call  - this works as it should
> pserver = new UDPSocket("127.0.0.1", 12345);
> pserver->setPeer("127.0.0.1", 11111);
>
> tpport_t mport; InetHostAddress ia = pserver->getPeer(&mport);
> 		cout << "Remote Client: " << ia << ":" << mport << endl;
> 		dlen = pserver->receive(buffer, 1000); buffer[dlen] = '\0';
> 		if (dlen > 0) {	cout << "pserver received: " << dlen << "bytes. = " <<
> buffer << endl;}
>
>
> furthermore, i could imagine, that socketport does not use
> UDPSocket::getPeer but Socket::getPeer(). this would explain the behaviour.
>
> Best regards
>
> Wolfgang
>
> Am Samstag, 27. Dezember 2003 22:38 schrieb Federico Montesino Pouzols:
> > 	Hi, do you see that broken behaviour with UDPSocket before
> > receiving any packet on the socket? UDPSocket::getPeer uses the
> > 'recvfrom' system call to retrieve the actual current peer the socket
> > is receiving from. If no packet has been received so far or is not
> > available, recvfrom will return 0. For an UDP socket, the peer is not
> > so clearly defined as for a TCP socket. I guess it would be helpful to
> > point this out in the SocketPort docs.
> >
> > On Sat, Dec 27, 2003 at 05:57:55AM +0100, Wolfgang wrote:
> > > Hello,
> > >
> > > when using getPeer(tpport_t *port) in a derived class from SocketPort
> > > using a CTOR for a bound UDPSocket, getPeer always returns 0.0.0.0:0
> > > (Adress and port eq 0).
> > > However when using an explicit UDPSocket, UDPSocket::getPeer works.
> > >
> > > Doing the same with SocketPort and a bound TCPSocket is not a problem.
> > >
> > > It seems that this is because UDPSocket overloads getPeer from Socket,
> > > which is not the case for TCPSocket. So SocketPort will not call
> > > UDPSocket::getPeer but Socket::getPeer (which works for TCPSocket's).
> > >
> > > Best regards
> > >
> > > Wolfgang
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Bug-commoncpp mailing list
> > > Bug-commoncpp@gnu.org
> > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Tue Jan 06 11:14:12 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AdtqO-0004i8-0H
	for mharc-bug-commoncpp@gnu.org; Tue, 06 Jan 2004 11:14:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AdtqL-0004hq-K9
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 11:14:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Adtpn-00044v-Ga
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 11:14:08 -0500
Received: from [129.132.112.23] (helo=tri-e2k.d.ethz.ch)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1Adtpm-00040m-FZ
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 11:13:34 -0500
Received: from xfe1.d.ethz.ch ([192.168.36.10]) by tri-e2k.d.ethz.ch with
	Microsoft SMTPSVC(5.0.2195.6713); Tue, 6 Jan 2004 16:12:03 +0100
Received: from ethworld.ethz.ch ([129.132.39.115]) by xfe1.d.ethz.ch over TLS
	secured channel with Microsoft SMTPSVC(5.0.2195.6713); 
	Tue, 6 Jan 2004 16:12:03 +0100
Message-ID: <3FFAD043.5030204@ethworld.ethz.ch>
Date: Tue, 06 Jan 2004 16:12:03 +0100
From: christoph ganser <ganser@ethworld.ethz.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.5) Gecko/20030925
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
X-Enigmail-Version: 0.82.2.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 06 Jan 2004 15:12:03.0485 (UTC)
	FILETIME=[70BFE4D0:01C3D467]
Subject: Multicast Problems
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2004 16:14:10 -0000

Hi List

Does anybody has a working example of how to use the Multicast-Socket?

I posted my problem on the 20.11.2003 but did not get any answer.

Is multicast in commoncpp not jet ready for use?

thanks

christoph




From MAILER-DAEMON Tue Jan 06 13:07:12 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Advbk-0006wW-CT
	for mharc-bug-commoncpp@gnu.org; Tue, 06 Jan 2004 13:07:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Advbi-0006vv-0Z
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 13:07:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AdvbA-0006kU-B7
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 13:07:08 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1Advb9-0006jq-RA
	for bug-commoncpp@gnu.org; Tue, 06 Jan 2004 13:06:35 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1Adufh-0000wr-00; Tue, 06 Jan 2004 18:07:13 +0100
Date: Tue, 6 Jan 2004 18:07:13 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Wolfgang Alper <wolfgang@alper-online.com>
Message-ID: <20040106170713.GA3274@paraguas>
Mail-Followup-To: Wolfgang Alper <wolfgang@alper-online.com>,
	CommonC++ Mailingliste <bug-commoncpp@gnu.org>
References: <200401011711.23978.wolfgang@alper-online.com>
	<200401042117.08125.wolfgang@alper-online.com>
	<20040105185242.GA2073@paraguas>
	<200401061437.54278.wolfgang@alper-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200401061437.54278.wolfgang@alper-online.com>
User-Agent: Mutt/1.5.4i
Cc: CommonC++ Mailingliste <bug-commoncpp@gnu.org>
Subject: Re: linking probs with ccext2 and cmdlineopt using w32 msys/mingw
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2004 18:07:10 -0000


	I think nobody will be bothered if it's small. If you feel the
summary becomes too big eventually, you can post it throuth the path
submission facility at savannah.

On Tue, Jan 06, 2004 at 02:37:54PM +0100, Wolfgang Alper wrote:
> Ok, i'll put a summary together the next days.
> Is it ok to attach small *.txt files to messages on this mailinglist?
> 
> Regards
> 
> Wolfgang
> 



From MAILER-DAEMON Thu Jan 08 04:19:38 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AeWKI-0005Mx-IY
	for mharc-bug-commoncpp@gnu.org; Thu, 08 Jan 2004 04:19:38 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AeWKG-0005MN-3h
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 04:19:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AeWJk-0005EL-B7
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 04:19:35 -0500
Received: from [194.203.97.221] (helo=dstintl.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeWJj-0005EC-St
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 04:19:04 -0500
Received: by romeo.dstintl.com id <84487>; Thu, 8 Jan 2004 08:13:46 +0000
Message-Id: <04Jan8.081346gmt.84487@romeo.dstintl.com>
From: graham.pursey@dstintl.com
To: bug-commoncpp@gnu.org
Date: Thu, 8 Jan 2004 08:16:50 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: base64
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
X-MIMETrack: Serialize by Router on DSTIUK01/Server/DST/US(Release 5.0.11
	|July 24, 2002) at 01/08/2004 08:16:51 AM
X-SEF-8179E6B3-DD7A-44BA-81F3-8E75FD85DB81: 1
Subject: Compiling commoncpp2-1.0.13 on AIX52
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=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Vt
LiAgVGhhbmsgeW91Lg0K




From MAILER-DAEMON Thu Jan 08 06:18:27 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AeYBH-0003aH-4l
	for mharc-bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:18:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AeYBD-0003ZP-O9
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:18:23 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AeY4e-0001pk-Mq
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:12:08 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeY4L-0001E7-Ev
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:11:18 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id i08A9bGH014363
	for <bug-commoncpp@gnu.org>; Thu, 8 Jan 2004 11:09:38 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJQKNP>; Thu, 8 Jan 2004 11:09:32 +0100
Received: from wige-data.de (taraben_a.wigemic.lpz [10.1.11.14]) by
	mailserver.wige-data.de with SMTP (Microsoft Exchange Internet
	Mail Service Version 5.5.2653.13)
	id YVLJQKN3; Thu, 8 Jan 2004 11:09:31 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FFD2C98.9050908@wige-data.de>
Date: Thu, 08 Jan 2004 11:10:32 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.5) Gecko/20031013 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: how to detect, disconnected network connection
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Jan 2004 11:18:24 -0000

Hello,

I have a simple tcp-server program derived from TCPSession.
My problem now is how to detect disconnected sessions.
1. disconnect by client, solved by messages from Wolfgang and Christian. 
  Return 0 bytes read.
2. disconnect by unplugging the network cable. HyperTerminal (my Client 
on Windows side) detects that the connection lost.

I already tried the bad() function and pendigError. But it seems 
everything normal.

btw. What I expect is a excpetion or pendingError.

My server program works under linux.

Many tanks for help,

Adib.




From MAILER-DAEMON Thu Jan 08 06:50:45 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AeYaL-00071m-LI
	for mharc-bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:44:21 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AeYZI-0006bi-7u
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:43:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AeYYk-0006RS-42
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:43:13 -0500
Received: from [195.112.37.194] (helo=jolt)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AeYTZ-0003Za-3c
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 06:37:21 -0500
Received: from jolt ([127.0.0.1] helo=acid)
	by jolt with smtp (Exim 3.35 #1 (Debian))
	id 1AeXVp-000795-00; Thu, 08 Jan 2004 10:35:38 +0000
Message-ID: <05cf01c3d5d3$28571fc0$147ba8c0@acid>
From: "Nick Liebmann" <nick@ukmail.org>
To: <taraben.a@wige-data.de>,
	<bug-commoncpp@gnu.org>
References: <3FFD2C98.9050908@wige-data.de>
Date: Thu, 8 Jan 2004 10:35:32 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Cc: 
Subject: Re: how to detect, disconnected network connection
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Jan 2004 11:44:19 -0000

taraben.a@wige-data.de wrote:
> Hello,
>
> I have a simple tcp-server program derived from TCPSession.
> My problem now is how to detect disconnected sessions.
> 1. disconnect by client, solved by messages from Wolfgang and
>   Christian. Return 0 bytes read.
> 2. disconnect by unplugging the network cable. HyperTerminal (my
> Client on Windows side) detects that the connection lost.
>
> I already tried the bad() function and pendigError. But it seems
> everything normal.
>
> btw. What I expect is a excpetion or pendingError.
>
> My server program works under linux.
>
> Many tanks for help,
>
> Adib.
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp

Hi,

I came across this problem too. As far as I know there is no way to tell if
a 'remote' client has just gone away i.e. been switched off, disconnected
without being closed. I dont think Windows can detect it either, however it
will detect if its own network cable is unplugged.

The best you can do on linux is enable keepalives and change some kernel
parameter which modifies the timeout for keepalives.


The default is every 2 hours and waits for 9 failures before deciding a
connection is dead

for debian I use the following two lines in /etc/sysctl.conf

net/ipv4/tcp_keepalive_time = 30
net/ipv4/tcp_keepalive_probes = 3

This sets the keepalives to every 30 seconds, and will close the connection
if 3 keepalives are missed

You must also enable keepalives on your socket.


for a full description of the available variables, see here:

http://ipsysctl-tutorial.frozentux.net/chunkyhtml/tcpvariables.html

If you are not happy to do this is only other solution is to implement a
user-level keepalive system.


Hope this helps

Nick




From MAILER-DAEMON Thu Jan 08 07:24:11 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AeZCs-0000xK-MJ
	for mharc-bug-commoncpp@gnu.org; Thu, 08 Jan 2004 07:24:10 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AeZCo-0000vI-Ce
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 07:24:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AeZCG-0000mH-2K
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 07:24:03 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeZ5Q-0007pT-Ea
	for bug-commoncpp@gnu.org; Thu, 08 Jan 2004 07:16:29 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id i08BEtGH015133
	for <bug-commoncpp@gnu.org>; Thu, 8 Jan 2004 12:14:55 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJQKRC>; Thu, 8 Jan 2004 12:14:50 +0100
Received: from wige-data.de (taraben_a.wigemic.lpz [10.1.11.14]) by
	mailserver.wige-data.de with SMTP (Microsoft Exchange Internet
	Mail Service Version 5.5.2653.13)
	id YVLJQKRB; Thu, 8 Jan 2004 12:14:46 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FFD3BE6.40601@wige-data.de>
Date: Thu, 08 Jan 2004 12:15:50 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.5) Gecko/20031013 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <3FFD2C98.9050908@wige-data.de>
	<05cf01c3d5d3$28571fc0$147ba8c0@acid>
In-Reply-To: <05cf01c3d5d3$28571fc0$147ba8c0@acid>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: how to detect, disconnected network connection
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Jan 2004 12:24:07 -0000

Many thanks. That solution is working and gives me pendingError.

Adib.
Btw. Ingredible fast answer ;-)

Nick Liebmann wrote:

> taraben.a@wige-data.de wrote:
> 
>>Hello,
>>
>>I have a simple tcp-server program derived from TCPSession.
>>My problem now is how to detect disconnected sessions.
>>1. disconnect by client, solved by messages from Wolfgang and
>>  Christian. Return 0 bytes read.
>>2. disconnect by unplugging the network cable. HyperTerminal (my
>>Client on Windows side) detects that the connection lost.
>>
>>I already tried the bad() function and pendigError. But it seems
>>everything normal.
>>
>>btw. What I expect is a excpetion or pendingError.
>>
>>My server program works under linux.
>>
>>Many tanks for help,
>>
>>Adib.
>>
>>
>>
>>_______________________________________________
>>Bug-commoncpp mailing list
>>Bug-commoncpp@gnu.org
>>http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 
> 
> Hi,
> 
> I came across this problem too. As far as I know there is no way to tell if
> a 'remote' client has just gone away i.e. been switched off, disconnected
> without being closed. I dont think Windows can detect it either, however it
> will detect if its own network cable is unplugged.
> 
> The best you can do on linux is enable keepalives and change some kernel
> parameter which modifies the timeout for keepalives.
> 
> 
> The default is every 2 hours and waits for 9 failures before deciding a
> connection is dead
> 
> for debian I use the following two lines in /etc/sysctl.conf
> 
> net/ipv4/tcp_keepalive_time = 30
> net/ipv4/tcp_keepalive_probes = 3
> 
> This sets the keepalives to every 30 seconds, and will close the connection
> if 3 keepalives are missed
> 
> You must also enable keepalives on your socket.
> 
> 
> for a full description of the available variables, see here:
> 
> http://ipsysctl-tutorial.frozentux.net/chunkyhtml/tcpvariables.html
> 
> If you are not happy to do this is only other solution is to implement a
> user-level keepalive system.
> 
> 
> Hope this helps
> 
> Nick
> 



From MAILER-DAEMON Fri Jan 09 10:56:43 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aez06-0000Cw-HM
	for mharc-bug-commoncpp@gnu.org; Fri, 09 Jan 2004 10:56:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aeyzt-0000Av-4R
	for bug-commoncpp@gnu.org; Fri, 09 Jan 2004 10:56:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AeyzM-0008SQ-Po
	for bug-commoncpp@gnu.org; Fri, 09 Jan 2004 10:56:27 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AeyzK-0008QO-W0
	for bug-commoncpp@gnu.org; Fri, 09 Jan 2004 10:55:55 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i09GtpHT005304; Fri, 9 Jan 2004 11:55:54 -0500
From: David Sugar <dyfet@ostel.com>
To: graham.pursey@dstintl.com, bug-commoncpp@gnu.org
Date: Fri, 9 Jan 2004 10:14:20 -0500
User-Agent: KMail/1.5.3
References: <04Jan8.081346gmt.84487@romeo.dstintl.com>
In-Reply-To: <04Jan8.081346gmt.84487@romeo.dstintl.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401091014.20893.dyfet@ostel.com>
Cc: 
Subject: Re: Compiling commoncpp2-1.0.13 on AIX52
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Jan 2004 15:56:40 -0000

What header in aix defines setenv?  And is this also true in the 1.1 test 
branch?

On Thursday 08 January 2004 03:16 am, graham.pursey@dstintl.com wrote:
> I am using gcc-3.3.1as the compiler on AIX 5.2.0.0
>
> Configured just using --prefix.
>
> make error I get is
>  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> -D_THREAD_SAFE -I../include -g -O2 -D_GNU_SOURCE -MT process.lo -MD -MP -MF
> .deps/process.Tpo -c process.cpp  -DPIC -o .libs/process.o
> process.cpp: In static member function `static void
> ost::Process::setEnv(const  char*, const char*, bool)':
> process.cpp:201: error: `::setenv' undeclared (first use here)
> make[1]: *** [process.lo] Error 1
>
> How can I get this to compile successfully?
>
> Thanks,
>
> Graham
>
>
> ---------------------------------------------------------------------------
>----------------------------------------- http://www.dstinternational.com
>
> Notice: This e-mail and any attachments are intended only for the
> individual or company to which it is addressed and may contain information
> which is priviliged, confidential and prohibited from disclosure or
> unauthorized use under applicable law.  If you are not the intended
> recipient of this e-mail, you are hereby notified that any use,
> dissemination or copying of this e-mail or the information contained in
> this e-mail is strictly prohibited by the sender.
>
> Whilst we run anti-virus software on all internet e-mails we are not liable
> for any loss or damage.  The recipient is advised to run their own
> anti-virus software.
>
> If you have received this transmission in error, please return the material
> received to the sender and delete all copies from your system.  Thank you.




From MAILER-DAEMON Sun Jan 11 01:27:26 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AfZ4H-00046I-UN
	for mharc-bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:27:25 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AfZ4B-0003t6-WC
	for bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:27:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AfZ3Y-00038U-Pg
	for bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:27:12 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AfZ3I-0002ia-AR
	for bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:26:24 -0500
Received: (qmail 12894 invoked by uid 0); 11 Jan 2004 05:24:45 -0000
Received: from 217.185.69.252 by www10.gmx.net with HTTP;
	Sun, 11 Jan 2004 06:24:45 +0100 (MET)
Date: Sun, 11 Jan 2004 06:24:45 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <5574.1073798685@www10.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Thread safe containers
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Jan 2004 06:27:24 -0000

Hi, 
Do we need thread safe container classes for CommonC++?  
I would volunteer to do that.  
 
Basically there are three choices: 
1) write our own container classes 
2) derive from the std:: containers to make them safe 
3) steal containers from another LGPL project 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sun Jan 11 01:30:21 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AfZ76-0005W7-O8
	for mharc-bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:30:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AfZ73-0005VV-Dt
	for bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:30:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AfZ6V-0005HR-KQ
	for bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:30:14 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AfZ6V-0005HN-3q
	for bug-commoncpp@gnu.org; Sun, 11 Jan 2004 01:29:43 -0500
Received: (qmail 30945 invoked by uid 0); 11 Jan 2004 05:28:12 -0000
Received: from 217.185.69.252 by www10.gmx.net with HTTP;
	Sun, 11 Jan 2004 06:28:13 +0100 (MET)
Date: Sun, 11 Jan 2004 06:28:13 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <7510.1073798893@www10.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Boxed types for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Jan 2004 06:30:18 -0000

Hi,  
Here is a proposed boxed type system for CommonC++. Comments? 
  
regards,  
Marc 
 
---------------------------------------------------------------------- 
 
#include <stdint.h> 
 
template <typename T> 
class BoxedType { 
   public: 
   BoxedType() : value(0) {} 
   BoxedType(const T& x) : value(0) {value = x;} 
   ~BoxedType() {} 
   const T& operator*() const {return value;} 
   void operator=(const T& x) {value = x;} 
   BoxedType<T>& operator +=(const BoxedType<T>& x) {value += *x; return
*this;} 
   bool operator==(const BoxedType<T>& x) const {return value == *x;} 
   bool operator!=(const BoxedType<T>& x) const {return value != *x;} 
   bool operator<(const BoxedType<T>& x) const {return value < *x;} 
   bool operator>(const BoxedType<T>& x) const {return value > *x;} 
   bool operator<=(const BoxedType<T>& x) const {return value <= *x;} 
   bool operator>=(const BoxedType<T>& x) const {return value >= *x;} 
   BoxedType<T> operator&(const BoxedType<T>& x) const {return value & *x;} 
   BoxedType<T>& operator++() { ++value; return *this; } 
   BoxedType<T> operator++(int) {BoxedType<T> x = *this; ++*this; return x;
} 
   BoxedType<T>& operator--() { --value; return *this; } 
   BoxedType<T> operator--(int) {BoxedType<T> x = *this; --*this; return x;
} 
   BoxedType<T> operator<<(const int& i) {return value<<i;} 
   BoxedType<T> operator>>(const int& i) {return value>>i;} 
   protected: 
   T value; 
}; 
 
 // integer 
typedef BoxedType<int> Int; 
typedef BoxedType<long int> LongInt; 
typedef BoxedType<long long int> LongLongInt; 
typedef BoxedType<int8_t> Int8; 
typedef BoxedType<int16_t> Int16; 
typedef BoxedType<int32_t> Int32; 
typedef BoxedType<int64_t> Int64; 
typedef BoxedType<unsigned int> UInt; 
typedef BoxedType<unsigned long int> ULongInt; 
typedef BoxedType<unsigned long long int> ULongLongInt; 
typedef BoxedType<uint8_t> UInt8; 
typedef BoxedType<uint16_t> UInt16; 
typedef BoxedType<uint32_t> UInt32; 
typedef BoxedType<uint64_t> UInt64; 
 
//float 
typedef BoxedType<float> Float; 
 
// char 
typedef BoxedType<char> Char; 
typedef BoxedType<unsigned char> UChar; 
 
 
  

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Tue Jan 13 08:12:32 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgOGG-0001yi-KV
	for mharc-bug-commoncpp@gnu.org; Tue, 13 Jan 2004 08:07:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgOGD-0001xo-7u
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 08:07:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgOFe-0001r4-To
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 08:07:06 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AgOFb-0001qH-7o
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 08:06:31 -0500
Received: (qmail 1937 invoked by uid 0); 13 Jan 2004 13:06:29 -0000
Received: from 143.52.199.241 by www5.gmx.net with HTTP;
	Tue, 13 Jan 2004 14:06:29 +0100 (MET)
Date: Tue, 13 Jan 2004 14:06:29 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <25195.1073999189@www5.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Re: Thread safe containers
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2004 13:07:10 -0000

I guess wrapping up stl containers would be the easiest thing to do and
still allow us to 
replace stl with something else if we want to. 
 
When we think about containers, we should also think about making the common
c++ 
String class template class. What was the reason not to use basic_string?  
 
regards, 
Marc 
 
On Tuesday 13 January 2004 13:37, you wrote: 
> I understand libARK had some simplified containers derived from std::. 
> Perhaps these could be reviewed and adapted for threadsafety at the same 
> time? 
> 
> On Sunday 11 January 2004 12:24 am, Marc Boris Dürner wrote: 
> > Hi, 
> > Do we need thread safe container classes for CommonC++? 
> > I would volunteer to do that. 
> > 
> > Basically there are three choices: 
> > 1) write our own container classes 
> > 2) derive from the std:: containers to make them safe 
> > 3) steal containers from another LGPL project 
> > 
> > regards, 
> > Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Tue Jan 13 10:59:26 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgQwv-0007Hl-Vz
	for mharc-bug-commoncpp@gnu.org; Tue, 13 Jan 2004 10:59:25 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgPaH-0002xj-8h
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 09:31:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgNu4-0008H6-GP
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 07:44:47 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AgNTs-0005DN-O4
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 07:17:12 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i0DEK8HT010865; Tue, 13 Jan 2004 09:20:08 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Tue, 13 Jan 2004 07:37:41 -0500
User-Agent: KMail/1.5.3
References: <5574.1073798685@www10.gmx.net>
In-Reply-To: <5574.1073798685@www10.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200401130737.41019.dyfet@ostel.com>
Cc: 
Subject: Re: Thread safe containers
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2004 15:59:24 -0000

I understand libARK had some simplified containers derived from std::. =20
Perhaps these could be reviewed and adapted for threadsafety at the same=20
time?

On Sunday 11 January 2004 12:24 am, Marc Boris D=FCrner wrote:
> Hi,
> Do we need thread safe container classes for CommonC++?
> I would volunteer to do that.
>
> Basically there are three choices:
> 1) write our own container classes
> 2) derive from the std:: containers to make them safe
> 3) steal containers from another LGPL project
>
> regards,
> Marc




From MAILER-DAEMON Tue Jan 13 12:00:45 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgRiy-0006VW-8y
	for mharc-bug-commoncpp@gnu.org; Tue, 13 Jan 2004 11:49:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgR4B-0008QF-Gi
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 11:06:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgNT7-000566-Pe
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 07:16:57 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AgNSU-0004z9-VQ
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 07:15:47 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i0DEIjHT010857; Tue, 13 Jan 2004 09:18:45 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Tue, 13 Jan 2004 07:36:17 -0500
User-Agent: KMail/1.5.3
References: <7510.1073798893@www10.gmx.net>
In-Reply-To: <7510.1073798893@www10.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200401130736.17529.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: Boxed types for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2004 16:49:02 -0000

I really had not had time to go over this as yet, since I am getting ready =
to=20
leave for Aachen.  But I will discuss this with Federico on Thursday.  We d=
o=20
need to lay out a roadmap for post 1.1 and this probably fits into that.

On Sunday 11 January 2004 12:28 am, Marc Boris D=FCrner wrote:
> Hi,
> Here is a proposed boxed type system for CommonC++. Comments?
>
> regards,
> Marc
>
> ----------------------------------------------------------------------
>
> #include <stdint.h>
>
> template <typename T>
> class BoxedType {
>    public:
>    BoxedType() : value(0) {}
>    BoxedType(const T& x) : value(0) {value =3D x;}
>    ~BoxedType() {}
>    const T& operator*() const {return value;}
>    void operator=3D(const T& x) {value =3D x;}
>    BoxedType<T>& operator +=3D(const BoxedType<T>& x) {value +=3D *x; ret=
urn
> *this;}
>    bool operator=3D=3D(const BoxedType<T>& x) const {return value =3D=3D =
*x;}
>    bool operator!=3D(const BoxedType<T>& x) const {return value !=3D *x;}
>    bool operator<(const BoxedType<T>& x) const {return value < *x;}
>    bool operator>(const BoxedType<T>& x) const {return value > *x;}
>    bool operator<=3D(const BoxedType<T>& x) const {return value <=3D *x;}
>    bool operator>=3D(const BoxedType<T>& x) const {return value >=3D *x;}
>    BoxedType<T> operator&(const BoxedType<T>& x) const {return value & *x=
;}
>    BoxedType<T>& operator++() { ++value; return *this; }
>    BoxedType<T> operator++(int) {BoxedType<T> x =3D *this; ++*this; retur=
n x;
> }
>    BoxedType<T>& operator--() { --value; return *this; }
>    BoxedType<T> operator--(int) {BoxedType<T> x =3D *this; --*this; retur=
n x;
> }
>    BoxedType<T> operator<<(const int& i) {return value<<i;}
>    BoxedType<T> operator>>(const int& i) {return value>>i;}
>    protected:
>    T value;
> };
>
>  // integer
> typedef BoxedType<int> Int;
> typedef BoxedType<long int> LongInt;
> typedef BoxedType<long long int> LongLongInt;
> typedef BoxedType<int8_t> Int8;
> typedef BoxedType<int16_t> Int16;
> typedef BoxedType<int32_t> Int32;
> typedef BoxedType<int64_t> Int64;
> typedef BoxedType<unsigned int> UInt;
> typedef BoxedType<unsigned long int> ULongInt;
> typedef BoxedType<unsigned long long int> ULongLongInt;
> typedef BoxedType<uint8_t> UInt8;
> typedef BoxedType<uint16_t> UInt16;
> typedef BoxedType<uint32_t> UInt32;
> typedef BoxedType<uint64_t> UInt64;
>
> //float
> typedef BoxedType<float> Float;
>
> // char
> typedef BoxedType<char> Char;
> typedef BoxedType<unsigned char> UChar;




From MAILER-DAEMON Tue Jan 13 18:40:03 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgY6P-0007Fn-Ev
	for mharc-bug-commoncpp@gnu.org; Tue, 13 Jan 2004 18:37:41 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgT2b-0004j7-DD
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 13:13:25 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgT1t-0004Xi-IN
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 13:13:12 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AgT1s-0004XD-O9
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 13:12:40 -0500
Received: (qmail 20592 invoked by uid 0); 13 Jan 2004 18:12:39 -0000
Received: from 143.52.199.241 by www8.gmx.net with HTTP;
	Tue, 13 Jan 2004 19:12:39 +0100 (MET)
Date: Tue, 13 Jan 2004 19:12:39 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="========GMXBoundary3931074017559"
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <393.1074017559@www8.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Subject: Signals/Slots for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2004 23:37:38 -0000

This is a MIME encapsulated multipart message -
please use a MIME-compliant e-mail program to open it.

Dies ist eine mehrteilige Nachricht im MIME-Format -
bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm.

--========GMXBoundary3931074017559
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Hi,  
A signal/slot implementation for CommonC++ is attached. This is a preview
and not yet 
thread-safe(need help for this). It works as follows:  
  
class MyClass {  
	Signal<int> signal;  // a signal carrying an int  
	void printInt(int i) {  
		std::cout << i << std::endl;  
	}  
	public:  
	MyClass() {  
		signal.connect(this, &MyClass::printInt);  //connect signal  
		signal(100); // emit signal  
	}  
};   
  
The template class Signal takes the type of data it carries as template
type. Currently  
Signals can transport no data or one parameter. It can be
connected/disconnected to  
functions matching the type of parameter. Signals can be connected to
multiple slots and  
other signals.   
  
Source is attached with a a simple test case.  
  
regards,  
Marc  
  
  
  
  
  
  

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net

--========GMXBoundary3931074017559
Content-Type: text/x-chdr; name="signals.h"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="signals.h"

CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGxpc3Q+CgoKCnRlbXBsYXRlIDx0eXBlbmFt
ZSBUPgpjbGFzcyBQdHJMaXN0IHsKICAgcHVibGljOgogICB0ZW1wbGF0ZSA8dHlwZW5hbWUgWD4K
ICAgY2xhc3MgUHRyIHsKICAgICAgcHVibGljOgogICAgICBQdHIoWCogeCwgYm9vbCBtID0gZmFs
c2UpIDogaXRlbSh4KSwgbWFuYWdlZCh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
c3RkOjplbmRsO30KICAgdm9pZCBzbG90RnVuY3Rpb24xKGNvbnN0IGludCYgaSkge3N0ZDo6Y291
dCA8PCAiU2xvdDEgY2FsbGVkOiAiPDwgaSA8PCBzdGQ6OmVuZGw7fQp9OwoKCgoKaW50IG1haW4o
aW50IGFyZ2MsIGNoYXIgKiphcmd2KSB7CiAgIFNpZ25hbFRlc3QgdGVzdHNpZzsKCiAgIHJldHVy
biAwOwp9CgoKCgoKCg==

--========GMXBoundary3931074017559--




From MAILER-DAEMON Tue Jan 13 20:52:33 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgaCv-0008DM-6q
	for mharc-bug-commoncpp@gnu.org; Tue, 13 Jan 2004 20:52:33 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgZEm-00008H-C9
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 19:50:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgZE8-0008Rw-KT
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 19:50:15 -0500
Received: from [64.142.19.5] (helo=b.mail.sonic.net)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AgZE8-0008RU-5Z
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 19:49:44 -0500
Received: from tiber.internal.esatechnology.com (adsl-64-142-52-112.sonic.net
	[64.142.52.112])
	by b.mail.sonic.net (8.12.10/8.12.7) with ESMTP id i0E0nghi017976
	for <bug-commoncpp@gnu.org>; Tue, 13 Jan 2004 16:49:42 -0800
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 13 Jan 2004 16:49:41 -0800
Message-ID: <662C51BFF387D9459C4281CD9A3F9D630A3EC5@tiber.internal.esatechnology.com>
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
X-MS-TNEF-Correlator: 
Thread-Topic: Signals/Slots for CommonC++
Thread-Index: AcPaMV9nzxp8KU4jTCGIzgtKFm/DnAABshnw
From: "Alex Pavloff" <apavloff@esatechnology.com>
To: <bug-commoncpp@gnu.org>
X-Mailman-Approved-At: Tue, 13 Jan 2004 20:52:30 -0500
Subject: RE: Signals/Slots for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 00:50:25 -0000


For signals/slots, I would suggest just folding in the libsgic++ library =
that the gtkmm people created for help with making the C++ bindings for =
gtk.

http://libsigc.sourceforge.net/

Alex Pavloff - apavloff@esatechnology.com
ESA Technology ---- www.esatechnology.com
------- Linux-based industrial HMI ------
-------- www.esatechnology.com/5k -------

> -----Original Message-----
> From: "Marc Boris D=FCrner" [mailto:mduerner@gmx.net]=20
> Sent: Tuesday, January 13, 2004 10:13 AM
> To: bug-commoncpp@gnu.org
> Subject: Signals/Slots for CommonC++
>=20
>=20
> Hi, =20
> A signal/slot implementation for CommonC++ is attached. This=20
> is a preview and not yet=20
> thread-safe(need help for this). It works as follows: =20
>  =20
> class MyClass { =20
> 	Signal<int> signal;  // a signal carrying an int =20
> 	void printInt(int i) { =20
> 		std::cout << i << std::endl; =20
> 	} =20
> 	public: =20
> 	MyClass() { =20
> 		signal.connect(this, &MyClass::printInt); =20
> //connect signal =20
> 		signal(100); // emit signal =20
> 	} =20
> };  =20
>  =20
> The template class Signal takes the type of data it carries=20
> as template type. Currently =20
> Signals can transport no data or one parameter. It can be=20
> connected/disconnected to =20
> functions matching the type of parameter. Signals can be=20
> connected to multiple slots and =20
> other signals.  =20
>  =20
> Source is attached with a a simple test case. =20
>  =20
> regards, =20
> Marc =20
>  =20
>  =20
>  =20
>  =20
>  =20
>  =20
>=20
> --=20
> +++ GMX - die erste Adresse f=FCr Mail, Message, More +++
> Neu: Preissenkung f=FCr MMS und FreeMMS! http://www.gmx.net
>=20



From MAILER-DAEMON Tue Jan 13 22:31:41 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Agbkq-0005qp-UJ
	for mharc-bug-commoncpp@gnu.org; Tue, 13 Jan 2004 22:31:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Agbkl-0005pz-5v
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 22:31:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgbkE-0005mS-FL
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 22:31:33 -0500
Received: from [138.89.37.116] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AgbkD-0005mO-W8
	for bug-commoncpp@gnu.org; Tue, 13 Jan 2004 22:31:02 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i0E5YRHT016421; Wed, 14 Jan 2004 00:34:28 -0500
From: David Sugar <dyfet@ostel.com>
To: "Alex Pavloff" <apavloff@esatechnology.com>, <bug-commoncpp@gnu.org>
Date: Tue, 13 Jan 2004 22:51:50 -0500
User-Agent: KMail/1.5.3
References: <662C51BFF387D9459C4281CD9A3F9D630A3EC5@tiber.internal.esatechnology.com>
In-Reply-To: <662C51BFF387D9459C4281CD9A3F9D630A3EC5@tiber.internal.esatechnology.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200401132251.50809.dyfet@ostel.com>
Cc: 
Subject: Re: Signals/Slots for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 03:31:38 -0000

Is libsigc++ threadsafe?  Are there potential threading/synchronization=20
issues/implications in slots/signal libraries?  These are the first two=20
questions that came to my mind.

David

On Tuesday 13 January 2004 07:49 pm, Alex Pavloff wrote:
> For signals/slots, I would suggest just folding in the libsgic++ library
> that the gtkmm people created for help with making the C++ bindings for
> gtk.
>
> http://libsigc.sourceforge.net/
>
> Alex Pavloff - apavloff@esatechnology.com
> ESA Technology ---- www.esatechnology.com
> ------- Linux-based industrial HMI ------
> -------- www.esatechnology.com/5k -------
>
> > -----Original Message-----
> > From: "Marc Boris D=FCrner" [mailto:mduerner@gmx.net]
> > Sent: Tuesday, January 13, 2004 10:13 AM
> > To: bug-commoncpp@gnu.org
> > Subject: Signals/Slots for CommonC++
> >
> >
> > Hi,
> > A signal/slot implementation for CommonC++ is attached. This
> > is a preview and not yet
> > thread-safe(need help for this). It works as follows:
> >
> > class MyClass {
> > 	Signal<int> signal;  // a signal carrying an int
> > 	void printInt(int i) {
> > 		std::cout << i << std::endl;
> > 	}
> > 	public:
> > 	MyClass() {
> > 		signal.connect(this, &MyClass::printInt);
> > //connect signal
> > 		signal(100); // emit signal
> > 	}
> > };
> >
> > The template class Signal takes the type of data it carries
> > as template type. Currently
> > Signals can transport no data or one parameter. It can be
> > connected/disconnected to
> > functions matching the type of parameter. Signals can be
> > connected to multiple slots and
> > other signals.
> >
> > Source is attached with a a simple test case.
> >
> > regards,
> > Marc
> >
> >
> >
> >
> >
> >
> >
> > --
> > +++ GMX - die erste Adresse f=FCr Mail, Message, More +++
> > Neu: Preissenkung f=FCr MMS und FreeMMS! http://www.gmx.net
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Wed Jan 14 05:58:29 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgijE-0004y3-C7
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:58:28 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgijB-0004vr-Iu
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:58:25 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Agiie-0004ip-5J
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:58:23 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1Agiic-0004i5-TT
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:57:51 -0500
Received: (qmail 1384 invoked by uid 0); 14 Jan 2004 10:57:49 -0000
Received: from 143.52.199.241 by www15.gmx.net with HTTP;
	Wed, 14 Jan 2004 11:57:50 +0100 (MET)
Date: Wed, 14 Jan 2004 11:57:50 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <25766.1074077870@www15.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Re: Signals/Slots for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 10:58:26 -0000

On Wednesday 14 January 2004 04:51, David Sugar wrote: 
> Is libsigc++ threadsafe?  Are there potential threading/synchronization 
> issues/implications in slots/signal libraries?  These are the first two 
> questions that came to my mind. 
 
No its not thread safe and the signals from boost aren't either. Another
problem is that 
boost-signals and SigC-signals dont work well with Qt. For boost there is a
workaround, 
for SigC I don't think so (guess why...) 
 
For SigC there are also portability issues I think, considering that
ComonC++ tries to 
support as many platforms as possible. 
 
CommonC++ signals are of course heavily influenced by boost-signals and SigC
signals, 
but easier to use. We have control over the code directly and when signals
make it in the 
c++ stdlib we can still decide to port to it. 
 
signals/slots isnt exactly rocket sience, so a CommonC++ version is
absolutely feasable. 
Compatibility between SigC-signals, boost-signals and CommonC++ signals is a
no 
problem, since all three create functors from a callback. So connecting a
SigC signal to a 
CommonC++ class or connecting a CommonC++ signal to a gtkmm function is
possible. 
Connecting a CommonC++ signal to a Qt slot should work out f the box, since
we can 
avoid Qt moc keywords. 
 
regards, 
Marc  
 
 
> 
> David 
> 
> On Tuesday 13 January 2004 07:49 pm, Alex Pavloff wrote: 
> > For signals/slots, I would suggest just folding in the libsgic++ library

> > that the gtkmm people created for help with making the C++ bindings for 
> > gtk. 
> > 
> > http://libsigc.sourceforge.net/ 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Wed Jan 14 05:59:08 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Agijs-0005C6-1p
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:59:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Agijp-0005BL-Jx
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:59:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgijI-00050v-Eh
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:59:03 -0500
Received: from [134.158.16.54] (helo=marocco.in2p3.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgijH-0004zp-Ez
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 05:58:31 -0500
Received: from localhost (localhost [127.0.0.1])
	by marocco.in2p3.fr (Postfix) with ESMTP id C94083831B
	for <bug-commoncpp@gnu.org>; Wed, 14 Jan 2004 11:58:29 +0100 (CET)
Received: from wanadoo.fr (marpain.in2p3.fr [134.158.17.186])
	by marocco.in2p3.fr (Postfix) with ESMTP id 073E73831A
	for <bug-commoncpp@gnu.org>; Wed, 14 Jan 2004 11:58:27 +0100 (CET)
Message-ID: <400520D2.1040308@wanadoo.fr>
Date: Wed, 14 Jan 2004 11:58:26 +0100
From: Karim Bernardet <bernardet.karim@wanadoo.fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925
X-Accept-Language: French, fr, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Subject: problem related to Thread::detach()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 10:59:06 -0000

Hello,

I use commoncpp2-1.0.13 to create detached thread like this

command *process2 = new 
command(messageFromServer[1],messageFromServer[2],messageFromServer[3],SERV);

               if (!process2)
             {
               *messages << MSG::ERROR << "main:: Failed to create a new 
thread command "  << endreq;
               exit(0);
             }
               else
                  {
process2->detach();
             process2->start();
}

But the program crashes:
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x08067073 in ost::Thread::detach(ost::Semaphore*) (this=0x80a1960,
    start=0x0) at thread.cpp:729
729             if(!rtn && priv->_tid)
(gdb)



If I comment "delete this" in the final() method, it "works" but with a 
memory leak

void command::final()
{
   message << MSG::DEBUG << "command::final()" << endreq;
   // delete this;
}

If someone have an idea ...

Thanks a lot

Karim




From MAILER-DAEMON Wed Jan 14 06:41:25 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgjLG-0005nw-Vs
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 06:37:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgjKx-0005GV-Cn
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 06:37:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgjK1-0004Ok-1a
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 06:37:01 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AgjFE-0002hM-AS
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 06:31:32 -0500
Received: (qmail 23354 invoked by uid 0); 14 Jan 2004 11:31:27 -0000
Received: from 143.52.199.241 by www21.gmx.net with HTTP;
	Wed, 14 Jan 2004 12:31:27 +0100 (MET)
Date: Wed, 14 Jan 2004 12:31:27 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <11469.1074079887@www21.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: CommonC++ channel on freenode
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 11:37:43 -0000

An IRC channel on freenode.net has been registered now. 
 
server: irc.freenode.net 
channel: #commonc++ 
 
hope to see you there, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Wed Jan 14 08:13:35 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgkXY-0006R6-7E
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 07:54:32 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgkUw-00066y-RD
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 07:51:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgkMO-00058q-Fv
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 07:43:32 -0500
Received: from [138.89.37.116] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AgkML-000585-NP
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 07:42:57 -0500
Received: from 192.168.1.101 ([192.168.1.101])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i0EEkVHT019219; Wed, 14 Jan 2004 09:46:32 -0500
From: David Sugar <dyfet@ostel.com>
To: "\"Marc Boris" =?ISO-8859-1?Q?D=FCrner=22?= <mduerner@gmx.net>
In-Reply-To: <25766.1074077870@www15.gmx.net>
References: <25766.1074077870@www15.gmx.net>
Content-Type: text/plain; charset=iso-8859-15
Organization: Open Source Telecom Corp.
Message-Id: <1074084218.2447.4.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4-8mdk 
Date: Wed, 14 Jan 2004 07:43:38 -0500
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by
	localhost.bayonne.dyndns.org id i0EEkVHT019219
Cc: bug-commoncpp@gnu.org
Subject: Re: Signals/Slots for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 12:54:30 -0000

This was the kind of background answer I was looking for.  Yes, the
portability question is also important.   We could put the preliminary
one you have into cvs (it's a template class?  maybe under Common C++
templates?) to give a chance for people to work on it.

On Wed, 2004-01-14 at 05:57, "Marc Boris D=FCrner" wrote:
> On Wednesday 14 January 2004 04:51, David Sugar wrote:=20
> > Is libsigc++ threadsafe?  Are there potential threading/synchronizati=
on=20
> > issues/implications in slots/signal libraries?  These are the first t=
wo=20
> > questions that came to my mind.=20
> =20
> No its not thread safe and the signals from boost aren't either. Anothe=
r
> problem is that=20
> boost-signals and SigC-signals dont work well with Qt. For boost there =
is a
> workaround,=20
> for SigC I don't think so (guess why...)=20
> =20
> For SigC there are also portability issues I think, considering that
> ComonC++ tries to=20
> support as many platforms as possible.=20
> =20
> CommonC++ signals are of course heavily influenced by boost-signals and=
 SigC
> signals,=20
> but easier to use. We have control over the code directly and when sign=
als
> make it in the=20
> c++ stdlib we can still decide to port to it.=20
> =20
> signals/slots isnt exactly rocket sience, so a CommonC++ version is
> absolutely feasable.=20
> Compatibility between SigC-signals, boost-signals and CommonC++ signals=
 is a
> no=20
> problem, since all three create functors from a callback. So connecting=
 a
> SigC signal to a=20
> CommonC++ class or connecting a CommonC++ signal to a gtkmm function is
> possible.=20
> Connecting a CommonC++ signal to a Qt slot should work out f the box, s=
ince
> we can=20
> avoid Qt moc keywords.=20
> =20
> regards,=20
> Marc =20
> =20
>=20
> >=20
> > David=20
> >=20
> > On Tuesday 13 January 2004 07:49 pm, Alex Pavloff wrote:=20
> > > For signals/slots, I would suggest just folding in the libsgic++ li=
brary
>=20
> > > that the gtkmm people created for help with making the C++ bindings=
 for=20
> > > gtk.=20
> > >=20
> > > http://libsigc.sourceforge.net/




From MAILER-DAEMON Wed Jan 14 08:53:06 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AglSD-00054S-B2
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 08:53:05 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AglLa-00048O-QU
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 08:46:14 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgkNy-0005MG-D7
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 07:45:09 -0500
Received: from [138.89.37.116] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AgkKW-0004pM-7g
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 07:41:04 -0500
Received: from 192.168.1.101 ([192.168.1.101])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i0EEicHT019209; Wed, 14 Jan 2004 09:44:38 -0500
From: David Sugar <dyfet@ostel.com>
To: Karim Bernardet <bernardet.karim@wanadoo.fr>
In-Reply-To: <400520D2.1040308@wanadoo.fr>
References: <400520D2.1040308@wanadoo.fr>
Content-Type: text/plain
Organization: Open Source Telecom Corp.
Message-Id: <1074084104.2450.1.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4-8mdk 
Date: Wed, 14 Jan 2004 07:41:44 -0500
Content-Transfer-Encoding: 7bit
Cc: bug-commoncpp@gnu.org
Subject: Re: problem related to Thread::detach()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 13:53:03 -0000

I believe this issue has been resolved best in the pending 1.1 release;
essentially detached threads will get deleted for you when they call
exit (this is new behavior).  But I will have to see if we come up with
a workaround for 1.0.x releases...

On Wed, 2004-01-14 at 05:58, Karim Bernardet wrote:
> Hello,
> 
> I use commoncpp2-1.0.13 to create detached thread like this
> 
> command *process2 = new 
> command(messageFromServer[1],messageFromServer[2],messageFromServer[3],SERV);
> 
>                if (!process2)
>              {
>                *messages << MSG::ERROR << "main:: Failed to create a new 
> thread command "  << endreq;
>                exit(0);
>              }
>                else
>                   {
> process2->detach();
>              process2->start();
> }
> 
> But the program crashes:
> Reading symbols from /lib/libnss_files.so.2...done.
> Loaded symbols for /lib/libnss_files.so.2
> #0  0x08067073 in ost::Thread::detach(ost::Semaphore*) (this=0x80a1960,
>     start=0x0) at thread.cpp:729
> 729             if(!rtn && priv->_tid)
> (gdb)
> 
> 
> 
> If I comment "delete this" in the final() method, it "works" but with a 
> memory leak
> 
> void command::final()
> {
>    message << MSG::DEBUG << "command::final()" << endreq;
>    // delete this;
> }
> 
> If someone have an idea ...
> 
> Thanks a lot
> 
> Karim
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Wed Jan 14 10:57:40 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Agmtx-0002XZ-5F
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 10:25:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgmBZ-0003Pk-Qb
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 09:39:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Agm30-0001tt-5e
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 09:31:37 -0500
Received: from [138.89.37.116] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AglMc-0004I0-Ry
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 08:47:19 -0500
Received: from 192.168.1.101 ([192.168.1.101])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	i0EFoqHT019457; Wed, 14 Jan 2004 10:50:52 -0500
From: David Sugar <dyfet@ostel.com>
To: "\"Marc Boris" =?ISO-8859-1?Q?D=FCrner=22?= <mduerner@gmx.net>
In-Reply-To: <18663.1074085533@www60.gmx.net>
References: <18663.1074085533@www60.gmx.net>
Content-Type: text/plain; charset=iso-8859-15
Organization: Open Source Telecom Corp.
Message-Id: <1074088077.2650.0.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4-8mdk 
Date: Wed, 14 Jan 2004 08:47:57 -0500
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by
	localhost.bayonne.dyndns.org id i0EFoqHT019457
Cc: bug-commoncpp@gnu.org
Subject: Re: slot returns it is connected to
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 15:25:46 -0000

I am leaving shortly for Aachen, but I may get a chance to look at it
while there over the weekend.  Perhaps Federico will also have some
input to suggest on it...

David

On Wed, 2004-01-14 at 08:05, "Marc Boris D=FCrner" wrote:
> OK, I will write some docs for it and send it again in a few days. I
> optimised it to a point=20
> where I think it is reasonable to expand it to more signal/slot classes=
 with
> 2,3,4,5 etc=20
> arguments being transmitted.=20
> Can you help me out with making it thread safe?=20
> =20
> There is two more features that I want to look at:=20
> =20
> - connecting a signal to a function that is not part of a class =20
> - make the signal return what the return value of the slot function=20
> =20
> I dont expect these two features to be used much, but for the sake of
> completeness...=20
> =20
> I have to make one correction though wrt SigC and portability. SigC is
> portable, but=20
> requires a really good C++ compiler. Thats what I meant by porting issu=
es.
> Commonc++=20
> tries to also support weaker compilers and having our own implementatio=
n
> enables us to=20
> adapt as needed quickly.=20
> =20
> As a side effect there is a PtrList template class available too now ;)=
=20
> =20
> Marc=20
> =20
>=20
> On Wednesday 14 January 2004 13:43, you wrote:=20
> > This was the kind of background answer I was looking for.  Yes, the=20
> > portability question is also important.   We could put the preliminar=
y=20
> > one you have into cvs (it's a template class?  maybe under Common C++=
=20
> > templates?) to give a chance for people to work on it.=20
> >=20
> > On Wed, 2004-01-14 at 05:57, "Marc Boris D=FCrner" wrote:=20
> > > On Wednesday 14 January 2004 04:51, David Sugar wrote:=20
> > > > Is libsigc++ threadsafe?  Are there potential
> threading/synchronization=20
> > > > issues/implications in slots/signal libraries?  These are the fir=
st
> two=20
> > > > questions that came to my mind.=20
> > >=20
> > > No its not thread safe and the signals from boost aren't either. An=
other
>=20
> > > problem is that=20
> > > boost-signals and SigC-signals dont work well with Qt. For boost th=
ere
> is=20
> > > a workaround,=20
> > > for SigC I don't think so (guess why...)=20
> > >=20
> > > For SigC there are also portability issues I think, considering tha=
t=20
> > > ComonC++ tries to=20
> > > support as many platforms as possible.=20
> > >=20
> > > CommonC++ signals are of course heavily influenced by boost-signals=
 and=20
> > > SigC signals,=20
> > > but easier to use. We have control over the code directly and when=20
> > > signals make it in the=20
> > > c++ stdlib we can still decide to port to it.=20
> > >=20
> > > signals/slots isnt exactly rocket sience, so a CommonC++ version is=
=20
> > > absolutely feasable.=20
> > > Compatibility between SigC-signals, boost-signals and CommonC++ sig=
nals=20
> > > is a no=20
> > > problem, since all three create functors from a callback. So connec=
ting
> a=20
> > > SigC signal to a=20
> > > CommonC++ class or connecting a CommonC++ signal to a gtkmm functio=
n is=20
> > > possible.=20
> > > Connecting a CommonC++ signal to a Qt slot should work out f the bo=
x,=20
> > > since we can=20
> > > avoid Qt moc keywords.=20
> > >=20
> > > regards,=20
> > > Marc=20
> > >=20
> > > > David=20
> > > >=20
> > > > On Tuesday 13 January 2004 07:49 pm, Alex Pavloff wrote:=20
> > > > > For signals/slots, I would suggest just folding in the libsgic+=
+=20
> > > > > library=20
> > > > >=20
> > > > > that the gtkmm people created for help with making the C++ bind=
ings=20
> > > > > for gtk.=20
> > > > >=20
> > > > > http://libsigc.sourceforge.net/
>=20




From MAILER-DAEMON Wed Jan 14 13:41:50 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Agpxe-0001r2-3E
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 13:41:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Agpxa-0001pg-6O
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 13:41:46 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Agpx3-0001hE-8Y
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 13:41:44 -0500
Received: from [217.217.166.187] (helo=paraguas)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgpdV-0006GR-PU
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 13:21:01 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1Agpg3-0000wo-00; Wed, 14 Jan 2004 19:23:39 +0100
Date: Wed, 14 Jan 2004 19:23:39 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Message-ID: <20040114182338.GB825@paraguas>
Mail-Followup-To: David Sugar <dyfet@ostel.com>,
	Marc Boris =?iso-8859-1?Q?D=FCrner=22?= <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
References: <18663.1074085533@www60.gmx.net>
	<1074088077.2650.0.camel@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1074088077.2650.0.camel@localhost>
User-Agent: Mutt/1.5.5.1+cvs20040105i
Cc: bug-commoncpp@gnu.org
Subject: Re: slot returns it is connected to
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 18:41:46 -0000


	About making signals thread safe, there is the sigslot library
(a project at sourceforge), which after a quick look seems really
interesting...

On Wed, Jan 14, 2004 at 08:47:57AM -0500, David Sugar wrote:
> I am leaving shortly for Aachen, but I may get a chance to look at it
> while there over the weekend.  Perhaps Federico will also have some
> input to suggest on it...
> 
> David
> 
> On Wed, 2004-01-14 at 08:05, "Marc Boris Dürner" wrote:
> > OK, I will write some docs for it and send it again in a few days. I
> > optimised it to a point 
> > where I think it is reasonable to expand it to more signal/slot classes with
> > 2,3,4,5 etc 
> > arguments being transmitted. 
> > Can you help me out with making it thread safe? 
> >  
> > There is two more features that I want to look at: 
> >  
> > - connecting a signal to a function that is not part of a class  
> > - make the signal return what the return value of the slot function 
> >  
> > I dont expect these two features to be used much, but for the sake of
> > completeness... 
> >  
> > I have to make one correction though wrt SigC and portability. SigC is
> > portable, but 
> > requires a really good C++ compiler. Thats what I meant by porting issues.
> > Commonc++ 
> > tries to also support weaker compilers and having our own implementation
> > enables us to 
> > adapt as needed quickly. 
> >  
> > As a side effect there is a PtrList template class available too now ;) 
> >  
> > Marc 
> >  
> > 
> > On Wednesday 14 January 2004 13:43, you wrote: 
> > > This was the kind of background answer I was looking for.  Yes, the 
> > > portability question is also important.   We could put the preliminary 
> > > one you have into cvs (it's a template class?  maybe under Common C++ 
> > > templates?) to give a chance for people to work on it. 
> > > 
> > > On Wed, 2004-01-14 at 05:57, "Marc Boris Dürner" wrote: 
> > > > On Wednesday 14 January 2004 04:51, David Sugar wrote: 
> > > > > Is libsigc++ threadsafe?  Are there potential
> > threading/synchronization 
> > > > > issues/implications in slots/signal libraries?  These are the first
> > two 
> > > > > questions that came to my mind. 
> > > > 
> > > > No its not thread safe and the signals from boost aren't either. Another
> > 
> > > > problem is that 
> > > > boost-signals and SigC-signals dont work well with Qt. For boost there
> > is 
> > > > a workaround, 
> > > > for SigC I don't think so (guess why...) 
> > > > 
> > > > For SigC there are also portability issues I think, considering that 
> > > > ComonC++ tries to 
> > > > support as many platforms as possible. 
> > > > 
> > > > CommonC++ signals are of course heavily influenced by boost-signals and 
> > > > SigC signals, 
> > > > but easier to use. We have control over the code directly and when 
> > > > signals make it in the 
> > > > c++ stdlib we can still decide to port to it. 
> > > > 
> > > > signals/slots isnt exactly rocket sience, so a CommonC++ version is 
> > > > absolutely feasable. 
> > > > Compatibility between SigC-signals, boost-signals and CommonC++ signals 
> > > > is a no 
> > > > problem, since all three create functors from a callback. So connecting
> > a 
> > > > SigC signal to a 
> > > > CommonC++ class or connecting a CommonC++ signal to a gtkmm function is 
> > > > possible. 
> > > > Connecting a CommonC++ signal to a Qt slot should work out f the box, 
> > > > since we can 
> > > > avoid Qt moc keywords. 
> > > > 
> > > > regards, 
> > > > Marc 
> > > > 
> > > > > David 
> > > > > 
> > > > > On Tuesday 13 January 2004 07:49 pm, Alex Pavloff wrote: 
> > > > > > For signals/slots, I would suggest just folding in the libsgic++ 
> > > > > > library 
> > > > > > 
> > > > > > that the gtkmm people created for help with making the C++ bindings 
> > > > > > for gtk. 
> > > > > > 
> > > > > > http://libsigc.sourceforge.net/
> > 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Wed Jan 14 23:46:18 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AgzFu-0007Lk-Am
	for mharc-bug-commoncpp@gnu.org; Wed, 14 Jan 2004 23:37:18 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AgpBx-0001OS-13
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 12:52:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AgnpL-00049T-97
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 11:25:38 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AgkiG-0007PY-79
	for bug-commoncpp@gnu.org; Wed, 14 Jan 2004 08:05:36 -0500
Received: (qmail 8353 invoked by uid 0); 14 Jan 2004 13:05:33 -0000
Received: from 143.52.199.241 by www60.gmx.net with HTTP;
	Wed, 14 Jan 2004 14:05:33 +0100 (MET)
Date: Wed, 14 Jan 2004 14:05:33 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <18663.1074085533@www60.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: slot returns it is connected to
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jan 2004 04:37:16 -0000

OK, I will write some docs for it and send it again in a few days. I
optimised it to a point 
where I think it is reasonable to expand it to more signal/slot classes with
2,3,4,5 etc 
arguments being transmitted. 
Can you help me out with making it thread safe? 
 
There is two more features that I want to look at: 
 
- connecting a signal to a function that is not part of a class  
- make the signal return what the return value of the slot function 
 
I dont expect these two features to be used much, but for the sake of
completeness... 
 
I have to make one correction though wrt SigC and portability. SigC is
portable, but 
requires a really good C++ compiler. Thats what I meant by porting issues.
Commonc++ 
tries to also support weaker compilers and having our own implementation
enables us to 
adapt as needed quickly. 
 
As a side effect there is a PtrList template class available too now ;) 
 
Marc 
 
 
On Wednesday 14 January 2004 13:43, you wrote: 
> This was the kind of background answer I was looking for.  Yes, the 
> portability question is also important.   We could put the preliminary 
> one you have into cvs (it's a template class?  maybe under Common C++ 
> templates?) to give a chance for people to work on it. 
> 
> On Wed, 2004-01-14 at 05:57, "Marc Boris Dürner" wrote: 
> > On Wednesday 14 January 2004 04:51, David Sugar wrote: 
> > > Is libsigc++ threadsafe?  Are there potential
threading/synchronization 
> > > issues/implications in slots/signal libraries?  These are the first
two 
> > > questions that came to my mind. 
> > 
> > No its not thread safe and the signals from boost aren't either. Another

> > problem is that 
> > boost-signals and SigC-signals dont work well with Qt. For boost there
is 
> > a workaround, 
> > for SigC I don't think so (guess why...) 
> > 
> > For SigC there are also portability issues I think, considering that 
> > ComonC++ tries to 
> > support as many platforms as possible. 
> > 
> > CommonC++ signals are of course heavily influenced by boost-signals and 
> > SigC signals, 
> > but easier to use. We have control over the code directly and when 
> > signals make it in the 
> > c++ stdlib we can still decide to port to it. 
> > 
> > signals/slots isnt exactly rocket sience, so a CommonC++ version is 
> > absolutely feasable. 
> > Compatibility between SigC-signals, boost-signals and CommonC++ signals 
> > is a no 
> > problem, since all three create functors from a callback. So connecting
a 
> > SigC signal to a 
> > CommonC++ class or connecting a CommonC++ signal to a gtkmm function is 
> > possible. 
> > Connecting a CommonC++ signal to a Qt slot should work out f the box, 
> > since we can 
> > avoid Qt moc keywords. 
> > 
> > regards, 
> > Marc 
> > 
> > > David 
> > > 
> > > On Tuesday 13 January 2004 07:49 pm, Alex Pavloff wrote: 
> > > > For signals/slots, I would suggest just folding in the libsgic++ 
> > > > library 
> > > > 
> > > > that the gtkmm people created for help with making the C++ bindings 
> > > > for gtk. 
> > > > 
> > > > http://libsigc.sourceforge.net/ 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Thu Jan 15 03:44:44 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Ah37M-0007U8-Ij
	for mharc-bug-commoncpp@gnu.org; Thu, 15 Jan 2004 03:44:44 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Ah37K-0007Sk-4F
	for bug-commoncpp@gnu.org; Thu, 15 Jan 2004 03:44:42 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Ah36o-0007DR-AK
	for bug-commoncpp@gnu.org; Thu, 15 Jan 2004 03:44:41 -0500
Received: from [134.158.16.54] (helo=marocco.in2p3.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ah36c-00073p-Aq
	for bug-commoncpp@gnu.org; Thu, 15 Jan 2004 03:43:58 -0500
Received: from localhost (localhost [127.0.0.1])
	by marocco.in2p3.fr (Postfix) with ESMTP id 72CB738356
	for <bug-commoncpp@gnu.org>; Thu, 15 Jan 2004 09:43:57 +0100 (CET)
Received: from wanadoo.fr (marpain.in2p3.fr [134.158.17.186])
	by marocco.in2p3.fr (Postfix) with ESMTP id A2B15380D3
	for <bug-commoncpp@gnu.org>; Thu, 15 Jan 2004 09:43:54 +0100 (CET)
Message-ID: <400652CA.5070107@wanadoo.fr>
Date: Thu, 15 Jan 2004 09:43:54 +0100
From: Karim Bernardet <bernardet.karim@wanadoo.fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925
X-Accept-Language: French, fr, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
References: <400520D2.1040308@wanadoo.fr> <1074084104.2450.1.camel@localhost>
In-Reply-To: <1074084104.2450.1.camel@localhost>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Subject: Re: problem related to Thread::detach()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jan 2004 08:44:42 -0000

David Sugar wrote:

>I believe this issue has been resolved best in the pending 1.1 release;
>essentially detached threads will get deleted for you when they call
>exit (this is new behavior).  But I will have to see if we come up with
>a workaround for 1.0.x releases...
>
>On Wed, 2004-01-14 at 05:58, Karim Bernardet wrote:
>  
>
>>Hello,
>>
>>I use commoncpp2-1.0.13 to create detached thread like this
>>
>>command *process2 = new 
>>command(messageFromServer[1],messageFromServer[2],messageFromServer[3],SERV);
>>
>>               if (!process2)
>>             {
>>               *messages << MSG::ERROR << "main:: Failed to create a new 
>>thread command "  << endreq;
>>               exit(0);
>>             }
>>               else
>>                  {
>>process2->detach();
>>             process2->start();
>>}
>>
>>But the program crashes:
>>Reading symbols from /lib/libnss_files.so.2...done.
>>Loaded symbols for /lib/libnss_files.so.2
>>#0  0x08067073 in ost::Thread::detach(ost::Semaphore*) (this=0x80a1960,
>>    start=0x0) at thread.cpp:729
>>729             if(!rtn && priv->_tid)
>>(gdb)
>>
>>
>>
>>If I comment "delete this" in the final() method, it "works" but with a 
>>memory leak
>>
>>void command::final()
>>{
>>   message << MSG::DEBUG << "command::final()" << endreq;
>>   // delete this;
>>}
>>
>>If someone have an idea ...
>>
>>Thanks a lot
>>
>>Karim
>>
>>
>>
>>_______________________________________________
>>Bug-commoncpp mailing list
>>Bug-commoncpp@gnu.org
>>http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>>    
>>
>
>
>  
>
Thanks a lot for your help
with commoncpp2-1.1.20040101, it seems better  ! (I remove the final 
method from my class)

Karim.

-- 
 __________________________________________________________________________
| Karim BERNARDET                | Phone : (+33){0}4-91-82-72-33           |
| C.P.P.M.                       | Fax   : (+33){0}4-91-82-72-99           |
| 163, av. de Luminy             | Email : bernardet@cppm.in2p3.fr         |
| Case 902                       | Web :  http://marwww.in2p3.fr/~kbernard |
| F-13288 Marseille CEDEX 09     | Bureau 349                              |
| FRANCE                         |                                         |
 --------------------------------------------------------------------------





From MAILER-DAEMON Thu Jan 15 05:43:58 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Ah4yj-0000Nu-HG
	for mharc-bug-commoncpp@gnu.org; Thu, 15 Jan 2004 05:43:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Ah4yc-0000Ht-QU
	for bug-commoncpp@gnu.org; Thu, 15 Jan 2004 05:43:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Ah4wd-0007kc-Ot
	for bug-commoncpp@gnu.org; Thu, 15 Jan 2004 05:42:18 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1Ah4tB-0006QW-0V
	for bug-commoncpp@gnu.org; Thu, 15 Jan 2004 05:38:13 -0500
Received: (qmail 13720 invoked by uid 0); 15 Jan 2004 10:38:05 -0000
Received: from 143.52.199.241 by www63.gmx.net with HTTP;
	Thu, 15 Jan 2004 11:38:06 +0100 (MET)
Date: Thu, 15 Jan 2004 11:38:06 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <10473.1074163086@www63.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: cproch@seculogix.de
Subject: Re: Signals/Slots (PClasses)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jan 2004 10:43:53 -0000

Hi Christian, 
Can we have bits of it for CommonC++ (LGPL)? What is the relationship
between 
PClasses and CommonC++? Can your latest version connect a Signal to a slot
with less 
function arguments? 
I mean can you connect a:  
 
Signal<int> signal; 
 
to a function: 
 
void slotFunction(); 
 
Here the slot takes less parameters than the signal carries. Can it connect
signals t 
signals? And what does the signal return when it is conncted to multiple
slots? 
 
regards, 
Marc 
 
PS: can you come to commonc++ on freenode.net? :) 
 
 
 
On Thursday 15 January 2004 10:55, you wrote: 
> Hi, 
> 
> maybe you should have a look at my own Signal/Slot implementation. 
> It supports methods and functions as slots. Also the Slot's can return 
> values. 
> 
> Regards, 
> Christian Prochnow 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Mon Jan 19 03:13:57 2004
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AiUXk-0002Xp-Py
	for mharc-bug-commoncpp@gnu.org; Mon, 19 Jan 2004 03:13:56 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AiUXZ-0002V8-SA
	for bug-commoncpp@gnu.org; Mon, 19 Jan 2004 03:13:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AiUX3-0001fF-5F
	for bug-commoncpp@gnu.org; Mon, 19 Jan 2004 03:13:44 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AiUWz-0001Yl-QV
	for bug-commoncpp@gnu.org; Mon, 19 Jan 2004 03:13:09 -0500
Received: from [194.203.97.221] (helo=dstintl.com)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AiUWb-000375-BT
	for bug-commoncpp@gnu.org; Mon, 19 Jan 2004 03:12:45 -0500
Received: by romeo.dstintl.com id <84491>; Mon, 19 Jan 2004 08:06:31 +0000
Message-Id: <04Jan19.080631gmt.84491@romeo.dstintl.com>
From: graham.pursey@dstintl.com
To: David Sugar <dyfet@ostel.com>
Date: Mon, 19 Jan 2004 08:03:58 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: base64
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
X-MIMETrack: Serialize by Router on DSTIUK01/Server/DST/US(Release 5.0.11
	|July 24, 2002) at 19/01/2004 08:04:00
X-SEF-8179E6B3-DD7A-44BA-81F3-8E75FD85DB81: 1
Cc: bug-commoncpp@gnu.org
Subject: Re: Compiling commoncpp2-1.0.13 on AIX52
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for Common C++  <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Jan 2004 08:13:53 -0000

DQpJdCBpcyBpbiBzdGRsaWIuaA0KSSBoYXZlIGNoZWNrZWQgdGhlIGNvbmZpZy5oLiBUaGlzIGhh
cyB0aGUgc3RkbGliLmggZmxhZyBzZXQgdG8gaW5jbHVkZSBpdC4NCkp1c3QgdHJ5aW5nIHRvIHNl
dCB0aGUgc2V0ZW52IGZsYWcgdG8gc2V0IGl0IGV4aXN0cyBkaWRuJ3Qgd29yay4NCg0KVGhhbmtz
LA0KDQpHcmFoYW0NCg0KDQp8LS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLT4N
CnwgICAgICAgICB8ICAgICAgICAgICBEYXZpZCBTdWdhciAgICAgfA0KfCAgICAgICAgIHwgICAg
ICAgICAgIDxkeWZldEBvc3RlbC5jb218DQp8ICAgICAgICAgfCAgICAgICAgICAgPiAgICAgICAg
ICAgICAgIHwNCnwgICAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgfA0KfCAgICAg
ICAgIHwgICAgICAgICAgIDA5LzAxLzIwMDQgMTU6MTR8DQp8ICAgICAgICAgfCAgICAgICAgICAg
ICAgICAgICAgICAgICAgIHwNCnwtLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
Pg0KICA+LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLXwNCiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8DQogIHwgICAgICAgIFRvOiAg
ICAgIGdyYWhhbS5wdXJzZXlAZHN0aW50bC5jb20sIGJ1Zy1jb21tb25jcHBAZ251Lm9yZyAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
fA0KICB8ICAgICAgICBjYzogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIHwNCiAgfCAgICAgICAgU3ViamVjdDogUmU6IENvbXBpbGluZyBj
b21tb25jcHAyLTEuMC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