[tcnative, MINA multicast, SLP]: jSLP dependencies

2009-04-07 Thread Lorenz Breu
Hi guys Sorry for the cross-post two 3 lists, but this whole jSLP issue depends on work from all three areas... As mentioned in the ApacheDS devlist, jSLP will be ready for release really soon. However, jSLP relies on: --- MINA multicasting I implemen

Re: tomcat-native: multicast on win32

2009-02-20 Thread Lorenz Breu
Hi Filip The java.net MulticastSocket works like a charm cheers, Lorenz - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org

Re: tomcat-native: multicast on win32

2009-02-19 Thread Lorenz Breu
David Knox wrote: > I saw something like this once. It turned out to be a firewall on XP. > Just a thought. thx for the pointer, after weeks of programming and debugging and profiling and testing i completely forgot about the "simple" problems :) unfortunately, even with all (known) forms of firew

Re: tomcat-native: multicast on win32

2009-02-16 Thread Lorenz Breu
> Here is the correct algo for sender: > > ifa = Address.info(null, Socket.APR_INET, Socket.APR_UNSPEC, 0, pool). > mca = Address.info("234.255.255.253", Socket.APR_INET, > Socket.APR_UNSPEC, 25000, pool); > Socket.optSet(handle, Socket.APR_SO_REUSEADDR, 1); > result = Socket.bind(handle, ifa); >

Re: tomcat-native: multicast on win32

2009-02-13 Thread Lorenz Breu
> > Try Multicast.loopback if Multicast.join fails. > Win32 is pretty weired, and not sure why the join doesn't work. > I suppose the multicast group needs to exists before joining. > no cigar. i first expected an APR_ENOTIMPL or even a failure, but i get APR_SUCCESS all the way... but nothing actu

tomcat-native: multicast on win32

2009-02-13 Thread Lorenz Breu
hi once again i have been trying to figure out why my tomcat native based mina acceptor won't join a speicified multicast group. the call goes through Multicast.join() over the tomcat native code to apr_mcast_join which in turn calls do_mcast in the apr multicast.c file. then it goes to os specifi

tomcat-native: multicast on win32

2009-02-12 Thread Lorenz Breu
hi guys i just tried out my mina apr transport classes and noticed that i can't join a multicast group under windows, while it works on my linux box. calling Multicast.join() returns Status.APR_SUCCESS, but wireshark assures me no IGMP messages are being sent out to announce group membership, and

building tomcat-native on win32

2009-02-08 Thread Lorenz Breu
i tried to build the tcnative libraries on my windows xp x86 machine using ms visual studio 2008, but it keeps telling me the project file is corrupted and can't be opened. this happens for both 1.1.15 and 1.1.16 versions of tc-native. any ideas? cheers, lorenz ---

Re: [ANNOUNCEMENT] ApacheTomcat Native 1.1.16 Released

2009-01-16 Thread Lorenz Breu
just to let you know, the typos in jni/native/multicast.c are still there - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org

1.1.16 sources still fubar

2008-12-25 Thread Lorenz Breu
hi guys i just did a quick check on the tomcat-native homepage and noticed two things haven't changed: a) link to the 1.1.15 binaries is broken b) 1.1.16 sources still contain the typos in multicast.c i also don't know if the inconsistency between the c and the java code, where the c code uses "r

Re: tomcat native 1.1.15 or 1.1.16?

2008-12-18 Thread Lorenz Breu
i was just going to ask a similar set of questions: a) when will the release you guys voted for actually happen? b) have the typos in been fixed ("Mulicast" instead of "Multicast" somewhere in the c-code and "recvFrom" in the java code vs. "recvfrom" in the c code or vice-versa)? c) will the new r

[JNI] tomcat-apr maven repo

2008-11-25 Thread Lorenz Breu
hi guys is there an ETA on the new release? i guess you will also update the version in the maven central repo, right? cheers, lorenz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [RESULT] [VOTE] Releasing Apache Tomcat Native 1.1.16

2008-11-13 Thread Lorenz Breu
Too bad :( I am just the new guy here and I only use tcn for my MINA APR transport extensions. As I couldn't build tomcat native on my windows box I was looking forward to the new release, even though the only problems I ever encountered (I don't use tcn extensively at the moment) were the typ

1.1.16 release

2008-11-12 Thread Lorenz Breu
I also just checked the file http://tomcat.apache.org/dev/dist/tomcat-connectors/native/source/1.1.16/tomcat-native-1.1.16-win32-src.zip The "Mulicast" typo in multicast.c is still there - To unsubscribe, e-mail: [EMAIL

Re: [VOTE] Releasing Apache Tomcat Native 1.1.16

2008-11-12 Thread Lorenz Breu
Using 1.1.15 under WinXP I noticed that recvfrom() would not set the port of the data source, however I couldn't try the repo version as I couldn't compile under WinXP. On my kubuntu box everything seems to work fine. I am now trying to use Multicast.ointerface(sock,iface), but I still have to find

[APR/JNI] send from specific interface

2008-11-11 Thread Lorenz Breu
hi guys can somebody give me a hint on how to send a udp message from a specific port using the jni (or directly the apr) code? i am trying the following: long handle = Socket.create(Socket.APR_INET, Socket.SOCK_DGRAM, Socket.APR_PROTO_UDP, pool); Socket.optSet(handle, Socket.APR_SO_NONBLOCK, 1);

tomcat native 1.1.16 release

2008-11-05 Thread Lorenz Breu
hi guys so did i get this right, you released version 1.1.16 of tomcat native? it's not on the homepage yet and i am having trouble finding the exact location of the code of the actual release, could you tell me if the typos in multicast.c have been fixed in the release (lots of occurences of

[MINA/Tomcat native]: Problems with building on win32, port not retrieved, ttl not set

2008-10-23 Thread Lorenz Breu
Hi I just managed to build tomcat native on my kubuntu gutsy box, but still no progress on win32, still getting that problem with not finding UuidCreate while linking... The tomcat.jni call to recvfrom() under linux correctly fills in the port into the apr_sockaddr_t, but under win32 it doesn't,

Re: Building tomcat native under win32 fails

2008-10-22 Thread Lorenz Breu
I have been trying to figure out why the tcnative project won't build, but without success... I have added the Microsoft SDK, Windows\system, Windows\system32 and OpenSSL\ library directories to the list of "Additional Library Directories" in Visual Studio 2008 for the projects apr, libapr, libctna

Re: Building tomcat native under win32 fails

2008-10-22 Thread Lorenz Breu
Hi again Thanks for the pointers, the native code now compiles...Well actually there is still that error in ossl_typ.h, but I just commented the line causing the error out (a typedef) for now. However, there is now a problem with linking. I keep getting the message: 1>apr-1.lib(rand.obj) : error

Building tomcat native under win32 fails

2008-10-22 Thread Lorenz Breu
Hi I tried to build tomcat native today following the instructions on the homepage. APR compiled just fine, but when I try to build tcnative using VS 2008 I get the following: 1>Compiling... 1>system.c 1>h:\Visual Studio\tomcat-native-1.1.15-win32-src\jni\apr\include\arch\win32\apr_arch_misc.h(42

[JNI/native] retrieving the port of the remote end of a socket

2008-10-21 Thread Lorenz Breu
Glad I could help ;) Maybe somebody can give me a hint now. I am trying to retrieve the port of the sender of a datagram using recvfrom() as shown below: protected SocketAddress receive(Long handle, IoBuffer buffer) throws Exception { /*initialize a new byte array for now. Is the data c

[JNI/native]: recvfrom vs recvFrom

2008-10-21 Thread Lorenz Breu
Hi folks, I am new to this stuff, so please bear with me... I am working on some extensions to the APR transport in the MINA project. I was trying to use Socket.recvFrom() from the org.apache.tomcat.jni package and kept getting UnsatisfiedLink errors... I think I tracked the problem to a case mis