Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 2390 times)
0 Members and 1 Guest are viewing this topic.
Offline Rob Grzywinski

Junior Member




Reality Interactive


« Posted 2004-08-20 13: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 15: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 15: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!
Legends of Yore - The Casual Retro Roguelike
Offline Rob Grzywinski

Junior Member




Reality Interactive


« Reply #3 - Posted 2004-08-20 15: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 15: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 15: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 15: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 15: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 15: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 16: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.

 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (17 views)
2014-09-19 03:14:18

Dwinin (34 views)
2014-09-12 09:08:26

Norakomi (61 views)
2014-09-10 13:57:51

TehJavaDev (84 views)
2014-09-10 06:39:09

Tekkerue (42 views)
2014-09-09 02:24:56

mitcheeb (64 views)
2014-09-08 06:06:29

BurntPizza (47 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (39 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!