any support for direct bytebuffer?

37 views
Skip to first unread message

shlomi...@gmail.com

unread,
Apr 3, 2013, 8:43:04 AM4/3/13
to alep...@googlegroups.com
Hey,

I am trying to use aleph (with lamina and gloss) to create a server that manipulates messages. 

The most important part of the manipulation is done in some C code using jni.

If i dont use direct BB, i have to copy the message so that the C code could see it, while using D-BB will simply pass a pointer to the jni code.

Is there a way to tell aleph to use a direct bytebuffer?

Thanks!

Zach Tellman

unread,
Apr 4, 2013, 2:14:46 PM4/4/13
to alep...@googlegroups.com
"Telling Aleph" involves telling Netty, which will only be possible in Netty 4.0.0 (we're currently on 3.x).  So for the time being, the answer is no, you'll have to copy the buffers yourself.

Zach


--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Shlomi Vaknin

unread,
Apr 4, 2013, 2:56:08 PM4/4/13
to alep...@googlegroups.com

Yeah, that's what I thought.. my next question was going to be if you are planning on supporting netty 4 once it's out.

In any case, I wanted to mention that I really enjoy working with your libraries.

You received this message because you are subscribed to a topic in the Google Groups "Aleph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/aleph-lib/K7uMZUXcBVE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to aleph-lib+...@googlegroups.com.

Zach Tellman

unread,
Apr 4, 2013, 3:09:56 PM4/4/13
to alep...@googlegroups.com
Yeah, I haven't been giving it a lot of attention, but it does seem to be getting sufficiently mature that the next Aleph release (after 0.3.0 finally makes it out the door) will probably be based on Netty 4.
Reply all
Reply to author
Forward
0 new messages