Share

NIO Framework

Code

Programming Languages: Java

License: GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics, last commit on 2009-10-29 svn co https://nioframework.svn.sourceforge.net/svnroot/nioframework nioframework

Show:

What's happening?

  • NIO Framework

    ronnystandtke committed revision 202 to the NIO Framework SVN repository, changing 8 files.

    2009-10-29 14:02:33 UTC by ronnystandtke

  • NIO Framework

    ronnystandtke committed revision 201 to the NIO Framework SVN repository, changing 10 files.

    2009-10-29 09:05:38 UTC by ronnystandtke

  • NIO Framework

    ronnystandtke committed revision 200 to the NIO Framework SVN repository, changing 3 files.

    2009-06-28 14:10:44 UTC by ronnystandtke

  • Followup: RE: More complex transformations?

    Hi Scott, Sorry for the late response. > I don't see an HTTP transformer in the trans directory. Is there an HTTP transformer in the source or is that what you are working on? In another project (which uses the NIO framework) I am working on a transformer that changes HTTP proxy requests into a custom tunnelling protocol. The code in its current shape is nothing that could be reused...

    2009-05-28 20:14:50 UTC by ronnystandtke

  • Followup: RE: More complex transformations?

    Hehe. Good luck! If you get it to work, let us know! The worst part for me is the additional interface complexity required for classes that want to receive an HTTP Request and return and HTTP Response: void processRequestHeader(byte[] header); void processRequestContent(byte[] content); void noMoreRequestContent(); I guess it would be simple enough to pass an empty or null byte[]...

    2009-05-21 19:00:47 UTC by rogan

  • Followup: RE: More complex transformations?

    Hi Rogan, Thanks for responding. I like the simplicity of thread-based comms, but this app must support thousands of simultaneous connections, so I think we need NIO. This framework sounds interesting. Might just have to bite the bullet and write a transformer that does what we need.

    2009-05-21 18:45:03 UTC by sef69

  • Followup: RE: More complex transformations?

    Hi Scott, For what it is worth, I ended up deciding to stick with Thread-based comms, rather than trying to force everything into an asynchronous handler. For my use case (an intercepting/modifying proxy), it really is the simplest choice. I also noted advice on various fora that unless I was aiming to support hundreds or thousands of simultaneous connections, Thread-based would be just...

    2009-05-21 18:20:04 UTC by rogan

  • Followup: RE: More complex transformations?

    Hi Ronny, I don't see an HTTP transformer in the trans directory. Is there an HTTP transformer in the source or is that what you are working on? I am working on a similiar project as Rogan, an HTTP proxy server and could use an HTTP transformer as you described. Thanks, --Scott.

    2009-05-21 18:00:34 UTC by sef69

  • Followup: RE: More complex transformations?

    Hi Ronny, Actually, I have written a pretty successful proxy already - OWASP WebScarab, so I know all about the various HTTP protocol issues. I've just never worked with NIO before, so I am having some issues getting my mind about how that is supposed to work! :-) I like your suggestion to write a state machine - I had actually pretty much come to the same conclusion myself. I had...

    2009-03-24 12:39:13 UTC by rogan

  • Followup: RE: More complex transformations?

    Hi Rogan I am actually working on a very similar application. What I am doing is to implement a little state machine in the HTTP transformer. When in "header mode" it tries to read in a complete header and determines the body length. If successful, it switches to "body mode" where bytes are just passed to the next forwarder without any additional processing. The state...

    2009-03-23 12:29:28 UTC by ronnystandtke

Our Numbers