> On Aug. 10, 2012, 3:10 p.m., Rafael Schloming wrote:
> > http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c, 
> > line 327
> > <https://reviews.apache.org/r/6302/diff/2/?file=134512#file134512line327>
> >
> >     Is there a way to do the equivalent of "0.0.0.0" on windows? This is 
> > intended to allow remote incoming connections, so the 127.0.0.1 default 
> > isn't an ideal choice here. We should at least make the default platform 
> > dependent if we have no better option at the moment.

Windows is OK with "0.0.0.0" for listening, but returns an error when 
connecting (complaining that it is a meaningless destination).

I believe that Linux converts it to the loopback, or it defaults to the 
loopback for the majority of routing tables.

I think I left all listening addresses as they were and only changed the 
outbound connections.


> On Aug. 10, 2012, 3:10 p.m., Rafael Schloming wrote:
> > http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton.c, 
> > line 24
> > <https://reviews.apache.org/r/6302/diff/2/?file=134514#file134514line24>
> >
> >     What's the #include <winsock2.h> for? Offhand I can't spot what part of 
> > the code would need that.

It is needed for gethostname(), perhaps others.


> On Aug. 10, 2012, 3:10 p.m., Rafael Schloming wrote:
> > http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/sys/windows/driver.c,
> >  line 1
> > <https://reviews.apache.org/r/6302/diff/2/?file=134518#file134518line1>
> >
> >     Is this just a wholesale copy + mod of src/driver.c?

Essentially yes.  It came from Ken's branch which had select() substituted for 
poll.  I first tried WSAPoll() but mingw kicked up a fuss.


- Cliff


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/6302/#review10122
-----------------------------------------------------------


On Aug. 6, 2012, 8:16 p.m., Cliff Jansen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/6302/
> -----------------------------------------------------------
> 
> (Updated Aug. 6, 2012, 8:16 p.m.)
> 
> 
> Review request for qpid, Andrew Stitcher, Kenneth Giusti, Steve Huston, and 
> Rafael Schloming.
> 
> 
> Description
> -------
> 
> This patch set works with a recent mingw32, cmake 2.8.1, python 2.5, swig 
> 2.0.7.
> 
> A push-button build is still a ways off.  The custom_commands in the cmake 
> script to generate the protocol headers don't work yet on Windows.
> 
> The most intrusive change was the introduction of a pn_socket_t type to hold 
> a socket on both Windows and Posix platforms.  An attempt was made to 
> minimize the use of #ifdefs and split platform code into separate posix and 
> windows directories, as is done for the C++ code.  There is so little needed 
> at the moment, this may be overkill.  The qpid-proton-posix library was 
> ditched and combined with the main qpid-proton library.  Instead, the work is 
> done in CMake to assemble the correct shared and platform specific sources as 
> is done in the C++ tree.
> 
> The driver.c implementation is proof of concept using Winsock select().  
> Future work would most likely replace this with an I/O completion port 
> implementation.
> 
> 
> 1. mkdir ...\trunk\proton-c\build
> 
> 2. set env vars as per trunk\config.sh
> 
> 
>   set PATH=C:\Program Files (x86)\CMake 
> 2.8\bin;C:\python25;C:\mingw_ptn\bin;C:\Windows\System32;c:\cj\work\amqp\proton\mingw4\trunk\proton-c\build
>   set 
> PYTHONPATH=c:\cj\work\amqp\proton\mingw4\trunk\tests;c:\cj\work\amqp\proton\mingw4\trunk\proton-c;c:\cj\work\amqp\proton\mingw4\trunk\proton-c\build\bindings\python
>   set 
> PYTHON_BINDINGS=c:\cj\work\amqp\proton\mingw4\trunk\proton-c\build\bindings\python
>   set PROTON_HOME=C:\cj\work\amqp\proton\mingw4\trunk
> 
> 3. generate the headers:
> 
>   cd trunk\proton-c\build
>   python 
> c:\cj\work\amqp\proton\mingw4\trunk\proton-c\src\codec\encodings.h.py 
> >encodings.h
>   python c:\cj\work\amqp\proton\mingw4\trunk\proton-c\src\protocol.h.py 
> >protocol.h
> 
> 4. build
> 
>   cmake -G "MinGW Makefiles" -DSWIG_EXECUTABLE=C:\swigwin-2.0.7\swig.exe 
> c:\cj\work\amqp\proton\mingw4\trunk\proton-c
>   mingw32-make
>   python ..\..\tests\proton-test
> 
> 
> This addresses bug QPID-4181.
>     https://issues.apache.org/jira/browse/QPID-4181
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/CMakeLists.txt 
> 1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/bindings/CMakeLists.txt
>  1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/bindings/php/php.i 
> 1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/bindings/python/python.i
>  1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/include/proton/driver.h
>  1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/codec/codec.c 
> 1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.c
>  1369190 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/driver.c 
> 1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/framing/framing.c
>  1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/message/message.c
>  1369190 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c 
> 1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton-dump.c 
> 1369190 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton.c 
> 1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/sys/network.h 
> PRE-CREATION 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/sys/posix/time.c
>  PRE-CREATION 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/sys/uuid.h 
> PRE-CREATION 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/sys/windows/driver.c
>  PRE-CREATION 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/sys/windows/time.c
>  PRE-CREATION 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/sys/windows/uuid.c
>  PRE-CREATION 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/util.h 
> 1369190 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/util.c 
> 1369190 
>   
> http://svn.apache.org/repos/asf/qpid/proton/trunk/tests/proton_tests/messenger.py
>  1369190 
> 
> Diff: https://reviews.apache.org/r/6302/diff/
> 
> 
> Testing
> -------
> 
> Fedora, Windows
> 
> 
> Thanks,
> 
> Cliff Jansen
> 
>

Reply via email to