Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  NIO, IO, and SSL facilitation code  (Read 1974 times)
0 Members and 1 Guest are viewing this topic.
Offline Rob Grzywinski

Junior Member




Reality Interactive


« Posted 2004-08-20 15:26:06 »

Rather than repost a whole bunch of info, I'll just post a link:

http://www.realityinteractive.com/rgrzywinski/archives/000091.html

I read these forums infrequently so if you have a question or problem, post a comment in the blog.  This way the information is centralized.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #1 - Posted 2004-08-20 17:18:28 »

Posts with no content and just a random link aren't very appealing, so ... here's a copy/paste of that link's content:

Quote

As was alluded to in the main NIO and SSL entry, I have made convenience code available at:

   http://www.realityinteractive.com/software/oss/index.html

Refer to the release notes for information about what is been made available. If you have any comments or questions, just post a comment and I will respond as soon as possible.

It is not mentioned in the source or readme (I will rectify this shortly) that the intention for the conversion is specifically for long running clients. No thought has been given to "fast attack" clients or server (e.g. HTTP).


...and, since that carefully avoids mentioning what on earth it actually is Grin, a bit more link following will you get you:

Quote

An NIO converter for InputStream and OutputStream to faciliate SSL using JDK 1.4. Because JDK 1.4 does not support NIO with SSL this set of classes facilitates using NIO with standard IO SSL.

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2004-08-20 17:25:51 »

It sounds interesting, but unfortunately each of the links cited "for more information" just forms an infinite link circle cyling between two pages with no info, so I'm not sure precisely what it does.

The description above could mean, well, anything really, from the exciting "makes SelectableChannel's out of old IO streams" to the mundane "a network library which abstracts between IO and NIO" (mundane because such a network library isn't going to be powerful - you can't easily hide the differences without ridding yourself of most of the advantages of NIO in the first place).

If anyone finds docs on his site, please let me know, since I'd be interested to see what this is (but I'm not going chasing someone who posts a teaser without a description with the rider that they're not going to check back here so don't ask any questions, and whose links don't seem to have any explanatory notes)

malloc will be first against the wall when the revolution comes...
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Rob Grzywinski

Junior Member




Reality Interactive


« Reply #3 - Posted 2004-08-20 17:27:18 »

It annoys the snot out of me to have the same info posted in multiple locations (like having 5 different forums with the same questions and answers).  We have these wonderful hyperlinks for a reason  Grin

Thanks for putting up the info blahblahblahh.

There's a goodly chunk of IO and NIO code in there and a lot of Pipe information.  If you're in need of some networking examples including SSL then it may be something to look at.

The release notes:

http://www.realityinteractive.com/software/oss/nio_ssl.txt

contain a good deal of information.

Quote
an infinite link circle cyling between two pages with no info


It's interesting that you say that.  I went to great lengths to ensure that all entries go back to the main NIO and SSL post which has references to all of the relevant information.  I'm open for suggestions (that don't involve replicating data) about how to better organize.  I will admit that it's not for the faint of heart.  
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #4 - Posted 2004-08-20 17:27:40 »

PS: in case you were wondering, SSL-over-NIO is one of the core features of 1.5. IIRC Sun has no plans to back-port it to 1.4 (just as with logging and regex, which are 1.4-only), so unless NIO2 + 1.5 NIO turn out to be a LOT more reliable than 1.4 NIO, SSL users mostly will be stuck without it for a few years yet.

Which is why Rob's link is tantalizing...

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #5 - Posted 2004-08-20 17:29:04 »

Quote
It annoys the snot out of me to have the same info posted in multiple locations (like having 5 different forums with the same questions and answers).  We have these wonderful hyperlinks for a reason  Grin


Yeah, I know. You have to strike a careful balance. But I think you could have given a *bit* more information Grin

Anyway...my link-following skills are often less-than-perfect, so is there a handy link that explains all? I read the release notes, the blog entry, and the main site, but still I'm not sure what you've done...?

malloc will be first against the wall when the revolution comes...
Offline Rob Grzywinski

Junior Member




Reality Interactive


« Reply #6 - Posted 2004-08-20 17:37:38 »

As for what it is .... there's not one answer.  Originally I wanted to get SSL working with NIO using 1.4 since I have a lot of NIO code that now needs to work over SSL.  That's obviously not going to happen out of the box.  So I started to determine how close I could get and that led to "Converted IO" (which essentially converts InputStream and OutputStream to a ScatteringByteChannel and GatheringByteChannel, respectively, using Pipes).  Pipes turned out to be a fiasco.

There's a bunch of Echo servers in there (using IO, NIO, Converted IO and Converted IO with a Selector) and sutiable clients.

Oh, and there's a couple of factories for creating SSL and plain sockets to simplify the whole ugly process.

I'm still sorting out what a best answer is, especially given the crappy performance of the Converted IO with Selector.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #7 - Posted 2004-08-20 17:53:45 »

Quote
Pipes turned out to be a fiasco.


I've never had a use for them (in java), and I've searched long and hard to find people using them in the field to no avail, so I'd be interested to hear your thoughts on them in particular.

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #8 - Posted 2004-08-20 17:54:31 »

(but could you start a thread in networking instead, since we can't move threads from here and that's the best place for it?)

malloc will be first against the wall when the revolution comes...
Offline Rob Grzywinski

Junior Member




Reality Interactive


« Reply #9 - Posted 2004-08-20 18:05:04 »

Ask and ye shall receive:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=Networking;action=display;num=1093025002
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (100 views)
2013-05-17 21:29:12

alaslipknot (108 views)
2013-05-16 21:24:48

gouessej (138 views)
2013-05-16 00:53:38

gouessej (133 views)
2013-05-16 00:17:58

theagentd (145 views)
2013-05-15 15:01:13

theagentd (131 views)
2013-05-15 15:00:54

StreetDoggy (174 views)
2013-05-14 15:56:26

kutucuk (196 views)
2013-05-12 17:10:36

kutucuk (198 views)
2013-05-12 15:36:09

UnluckyDevil (204 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.108 seconds with 20 queries.