[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UDPDuplex constructor fails on cygwin
From: |
David Sugar |
Subject: |
Re: UDPDuplex constructor fails on cygwin |
Date: |
Tue, 11 Mar 2003 18:42:10 -0500 |
User-agent: |
KMail/1.4.3 |
Hmmm...I was hoping to look at integrating that patch before I leave on
Thursday. If so I might get a chance to look at this issue. but I think it's
not likely I will get a chance to look at it until I get back.
On Monday 03 March 2003 10:46 pm, James Cooper wrote:
> I used Makino Takaki's patch and compiled commoncpp2-1.0.8 on cygwin.
> (Thanks Makino),
> but the following program, which works on linux dumps core on cygwin
> when it tries to construct a UDPDuplex object. Sorry if this is a known
> problem.
>
> #include <iostream>
> #include <cc++/socket.h>
>
> using namespace ost;
>
> int main(int argc, char *argv[])
> {
> int port = 4321;
> char thishost[256];
>
> gethostname(thishost,sizeof(thishost));
>
> cout << "creating UDPDuplex socket on host \"" << thishost << "\"";
> cout << " at port " << port << endl;
> InetAddress address(thishost);
>
> cout << "host name: " << address.getHostname() << endl;
>
> cout << "Got address. So far so good." << endl;
> UDPDuplex duplex(address, port);
> cout << "I want to see this message from cygwin." << endl;
>
> exit(0);
> }