From MAILER-DAEMON Fri Apr 08 12:48:14 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1DJweU-0007Mj-8V
	for mharc-bug-commoncpp@gnu.org; Fri, 08 Apr 2005 12:48:14 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1DJtSY-0003Dw-Tw
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 09:23:43 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1DJtST-0003Bb-PF
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 09:23:40 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1DJtST-0003AB-KL
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 09:23:37 -0400
Received: from [212.88.155.10] (helo=mail.rea.de)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJtsu-0008AF-JJ
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 09:50:57 -0400
Message-id: <fc.004c4e480030ec44004c4e480030ec44.30ed91@rea.de>
Date: Fri, 08 Apr 2005 15:49:54 +0200
To: bug-commoncpp@gnu.org
From: "Uwe Buchholz" <ubuchholz@rea.de>
MIME-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Mailman-Approved-At: Fri, 08 Apr 2005 12:48:13 -0400
Subject: bug in socket.cpp
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.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://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Apr 2005 13:23:46 -0000

Hi,

I compiled commoncpp2-1.3.8 and tried tcpstr1 with VC++ 6.0, SDK installed.

There was 2 problems:

1st in config.h I have to comment Line 83 :

//#define	HAVE_PLATFORMSDK

because I need to include <windows.h> before <winsock2.h>.

---------------------------

2nd in socket.cpp Line 2572 :

       if(!cp)
                cp = strrchr(namebuf, ':');

        if(!cp)
        {
                endStream();
                connectError();
                return;
        }
	
	*(cp++) = 0;       // << ----------------------- this line is missing

	if(isdigit(*cp))
		port = atoi(cp);

in all other cases where this sequence is used, it seemed to be OK.


Best regards

Uwe Buchholz






From MAILER-DAEMON Fri Apr 08 19:01:21 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1DK2TX-0002Hy-Qx
	for mharc-bug-commoncpp@gnu.org; Fri, 08 Apr 2005 19:01:20 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1DK2TN-0002Di-7Q
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 19:01:13 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1DK2TC-00028T-5N
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 19:01:03 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1DK2TB-00027o-VK
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 19:00:57 -0400
Received: from [216.218.222.122] (helo=mail.ostel.com)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1DK2uq-0008Rg-PD
	for bug-commoncpp@gnu.org; Fri, 08 Apr 2005 19:29:33 -0400
Received: from [192.168.1.111] (pool-138-89-240-2.atc.east.verizon.net
	[138.89.240.2])
	by mail.ostel.com (Postfix) with ESMTP id 570AA2F2873;
	Fri,  8 Apr 2005 16:59:35 -0700 (PDT)
Message-ID: <4257139D.6090408@ostel.com>
Date: Fri, 08 Apr 2005 19:28:29 -0400
From: David Sugar <dyfet@ostel.com>
Organization: GNU Project
User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Uwe Buchholz <ubuchholz@rea.de>
References: <fc.004c4e480030ec44004c4e480030ec44.30ed91@rea.de>
In-Reply-To: <fc.004c4e480030ec44004c4e480030ec44.30ed91@rea.de>
Content-Type: multipart/mixed; boundary="------------000502060303090401000606"
Cc: bug-commoncpp@gnu.org
Subject: Re: bug in socket.cpp
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.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://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Apr 2005 23:01:16 -0000

This is a multi-part message in MIME format.
--------------000502060303090401000606
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

 From what I gather, depending on which version of the platform sdk you 
have installed with VC++ 6.0 (whether the one it originally comes with, 
or the latest one), you either MUST include windows.h before, or after 
winsock2.h or everything will break. and there is no easy way to find 
out which you have until you include some header!  You can from what I 
gather install the current platform sdk for use with vc6.  This also 
gives you support for building apps that use ipv6 with vc6 and some 
other "missing" api's.

Uwe Buchholz wrote:
> Hi,
> 
> I compiled commoncpp2-1.3.8 and tried tcpstr1 with VC++ 6.0, SDK installed.
> 
> There was 2 problems:
> 
> 1st in config.h I have to comment Line 83 :
> 
> //#define	HAVE_PLATFORMSDK
> 
> because I need to include <windows.h> before <winsock2.h>.
> 
> ---------------------------
> 
> 2nd in socket.cpp Line 2572 :
> 
>        if(!cp)
>                 cp = strrchr(namebuf, ':');
> 
>         if(!cp)
>         {
>                 endStream();
>                 connectError();
>                 return;
>         }
> 	
> 	*(cp++) = 0;       // << ----------------------- this line is missing
> 
> 	if(isdigit(*cp))
> 		port = atoi(cp);
> 
> in all other cases where this sequence is used, it seemed to be OK.
> 
> 
> Best regards
> 
> Uwe Buchholz
> 
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-commoncpp

--------------000502060303090401000606
Content-Type: text/x-vcard; charset=utf-8;
 name="dyfet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="dyfet.vcf"

begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Project
adr:;;23 Olin Drive;Cape May Court House;NJ;08210;USA
email;internet:dyfet@ostel.com
tel;home:1 609 465 5336
tel;cell:1 908 917 6084
x-mozilla-html:FALSE
url:http://www.ostel.com
version:2.1
end:vcard


--------------000502060303090401000606--



From MAILER-DAEMON Mon Apr 18 09:04:14 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1DNVv8-0003IC-W5
	for mharc-bug-commoncpp@gnu.org; Mon, 18 Apr 2005 09:04:11 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1DNVuz-0003DA-Ol
	for bug-commoncpp@gnu.org; Mon, 18 Apr 2005 09:04:02 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1DNVus-00038y-PJ
	for bug-commoncpp@gnu.org; Mon, 18 Apr 2005 09:03:56 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1DNVus-00036u-K4
	for bug-commoncpp@gnu.org; Mon, 18 Apr 2005 09:03:54 -0400
Received: from [206.190.39.193] (helo=web53003.mail.yahoo.com)
	by monty-python.gnu.org with smtp (Exim 4.34) id 1DNVuk-0005AJ-IL
	for bug-commoncpp@gnu.org; Mon, 18 Apr 2005 09:03:46 -0400
Received: (qmail 5514 invoked by uid 60001); 18 Apr 2005 13:02:12 -0000
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	b=gJREvQrpWT/NeLME6jyodjYRQaqxfUfgFlrFyp0Z/UpH7TK0i95x4vVzJ6NQyWp2AXWXFEUQEqqhC+RkTlckFZD7Ez5WeTZQfJqOd39dOMBCBk3tOoRqgr43/VsC4wNMHjeM/zVZJiSR0L+kT6Scs25UWuKhZo8FKrTUVxAK4AY=
	; 
Message-ID: <20050418130212.5512.qmail@web53003.mail.yahoo.com>
Received: from [153.1.61.64] by web53003.mail.yahoo.com via HTTP;
	Mon, 18 Apr 2005 06:02:11 PDT
Date: Mon, 18 Apr 2005 06:02:11 -0700 (PDT)
From: Rami Saarinen <rs55862@yahoo.com>
To: Common C++ <bug-commoncpp@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Serial port question
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.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://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Apr 2005 13:04:06 -0000

I have this 5 button thingy that could prove to be useful. The problem is
that it does not have any drivers and comes just vith a small diagram of
which button corresponds to which pin. I have never done any direct
programming with any hw ports. 

AFAIK common-c++ does have serial API that could be used to read the pins
of the given port (but I find it a bit confusing). So the questions are: 

Is it possible? 

Is it possible to do in OS independent way (at least Linux and Windows XP
compatible way)? 

Is there any simple example of just how to check the serial pins / do the
basic stuff? 

Thanks again!

--
Rami Saarinen

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



